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

142
Views
No se pueden leer las propiedades de undefined (pregunta de principiante)

Así que tengo este error que dice 'Error de tipo no detectado: no se pueden leer las propiedades de undefined (leyendo 'estilo')' en la línea 97, a.style.textDecoration = 'line-through'; ¿Alguien puede explicarme por qué sucedió? Creo que tenía 'a' definido en la misma función. ¡Gracias de antemano!

Estoy tratando de escribir una lista de tareas pendientes. Y cuando hago clic en la casilla de verificación frente a la tarea, la tarea se tacha. Aquí está el código de la función con error...

 function crossing(x){ array1.forEach(function process(y){ const a = document.getElementById(y.code).getElementsByTagName('div')[0]; if(y.code===x.target.id){ **a.style.textDecoration = 'line-through';** } }) }

Aquí está el enlace para todos los códigos... https://jsfiddle.net/PhilipWoo/x8dewa0s/

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!