0

Some Values are considered undefined.

It is all good at the moment except after the line 99 of the js code where the comment "// Third Line" is written , that is where the problem is. https://code.sololearn.com/Wce9ZJc59lQ5/?ref=app

9th Apr 2023, 11:50 PM
Ayoub Ab
Ayoub Ab - avatar
2 Respostas
+ 3
Your problem is at line 101 (arrow function) either get rid of the curly brackets or add a return statement. jic Im viewing this via my pc
10th Apr 2023, 4:40 AM
ODLNT
ODLNT - avatar
+ 5
Read the error message again. It is *way* before line 99. JavaScript gets interpreted before the page loads, so no elements exist yet, and any reference to them gives this error. Wrap the whole JS section in a window.onload event, like: window.onload=function(){   <Code> }
10th Apr 2023, 4:00 AM
Emerson Prado
Emerson Prado - avatar