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

95
Views
tengo problemas para agregar algo en js dentro de un bucle for

tengo este error:

script.js: 41 No capturado (en promesa) TypeError: no se pueden leer las propiedades de nulo (leyendo 'agregar') en script.js: 41:12

en el siguiente código

 const form = document.querySelector("d-flex"); const glass = document.getElementById("glass"); const select = document.getElementById("episod-select"); const episodes = async () => { // ? trying to bring the api to website and making a select tag for it const res = await axios.get("https://api.tvmaze.com/shows/5/episodes"); return res; }; const data = episodes().then((res) => { console.log(res); for (let i = 0; i < res.data.length; i++) { const ses = res.data[i].season; const epi = res.data[i].number; const option = document.createElement("option"); option.innerText = `S0${ses}E0${epi}`; select.append(option); //! the error is right here ^^ } });
about 4 years ago · Juan Pablo Isaza
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!