Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

201
Views
¿Cómo resuelvo mi problema con el bucle forEach que no funciona?

Sigo recibiendo un error que dice .forEach no es una función. Tengo una función muy similar que funciona bien, pero no puedo encontrar la manera de solucionar este problema de forEach.

 function populateRepsDiv(repsArray) { removeChildren(senatorDiv) repsArray.forEach(representative => { const repFigure = document.createElement('figure') const repImg = document.createElement('img') const repCaption = document.createElement('figcaption') repImg.src = representative.imgURL repCaption.textContent = representative.name repFigure.appendChild(repImg) repFigure.appendChild(figCaption) senatorDiv.appendChild(repFigure) console.log(representative.name) }) }
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!