Why error occurs? (null) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Why error occurs? (null)

"Cannot read property 'appendChild' of null" why this error occurs? please help... https://code.sololearn.com/WVE1P7l7D933/?ref=app https://code.sololearn.com/WVE1P7l7D933/?ref=app

3rd Jan 2018, 6:56 PM
Amadeus
Amadeus - avatar
2 Answers
+ 3
add in the beginning of the JavaScript code and close it at the end window.onload=function(){
3rd Jan 2018, 7:06 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
thanks very much
3rd Jan 2018, 7:09 PM
Amadeus
Amadeus - avatar