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

137
Vistas
Is there an efficient way to create an image array in Javascript without having to add each individual image into an array?

is there a way in Javascript to access a file of many images without having to code each individual image separately?
I'm looking for something that pretty much accesses the whole folder with as little coding as possible, does it exist?
I've added a screenshot to illustrate. The images are in myImage folder and the array can be seen in the script but I'm wanting something more efficient. This is the code but there will be many more images to add

var URLs = [ "/myImage/2.png", "/myImage/2.png"
           , "/myImage/3.png", "/myImage/3.png"
           , "/myImage/4.png", "/myImage/4.png" ];
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