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

225
Views
No se puede obtener el texto que aparece con javascript .appendChild

Esta es la función de agregar que estoy usando

 function append(parent, el) { return parent.appendChild(el); }

Y aquí es donde se está utilizando.

 let container = document.getElementById("container"); let line = createNode("p"); let line2 = createNode("p"); let line3 = createNode("p"); line.innerHTML = data[key][0]; line2.innerHTML = data[key][1]; //this line checks if there is a third type to be displayed if (typeof data[key][2] !== "undefined") { line3.innerHTML = data[key][2]; } append(container, line); append(container, line2); append(container, line3);

El error de la consola siempre regresa como Cannot read properties of null (reading 'appendChild') ¿Qué parte de appendChild es nula?

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!