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

486
Vistas
My array can't find the source of my pictures, how do I fix it?

So I'm building an comic slider on javascript and I want it to have a "pick a random comic" option. So, naturally, I tried to built a random function over a pretty big array. And made it, but, the function can't find the src of the pictures! What should I do? Everything seems good but maybe I'm missing something... can u help me with my code? thanks!

function random() {    
var randomNum = Math.floor(Math.random() * imgArray.length);
document.getElementById("comicdehoy").src = imgArray[randomNum];
}
about 4 years ago · Juan Pablo Isaza
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