Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

262
Vistas
¿Cómo aleatorizo mis preguntas? No puedo encontrar una respuesta en ningún otro lado.
// create questions var questions = [ new Question("Which one is not an object oriented programming language?", ["Java", "C#","C++", "C"], "C"), new Question("Which language is used for styling web pages?", ["HTML", "JQuery", "CSS", "XML"], "CSS"), new Question("There are ____ main components of object oriented programming.", ["1", "6","2", "4"], "4"), new Question("Which language is used for web apps?", ["PHP", "Python", "Javascript", "All"], "All"), new Question("MVC is a ____.", ["Language", "Library", "Framework", "All"], "Framework") ]; // create quiz var quiz = new Quiz(questions);

cómo aleatorizar cuando se crea el cuestionario ^^^ [Math.floor(math.random()*] no funciona

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Prueba esto :

 // create questions var questions = [ new Question("Which one is not an object oriented programming language?", ["Java", "C#","C++", "C"], "C"), new Question("Which language is used for styling web pages?", ["HTML", "JQuery", "CSS", "XML"], "CSS"), new Question("There are ____ main components of object oriented programming.", ["1", "6","2", "4"], "4"), new Question("Which language is used for web apps?", ["PHP", "Python", "Javascript", "All"], "All"), new Question("MVC is a ____.", ["Language", "Library", "Framework", "All"], "Framework") ]; // create quiz let randomQuestion = questions[Math.floor(Math.random()*questions.length)] var quiz = new Quiz(randomQuestion);
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda