+ 3

What errors in this code?Why arg 1 is node type?

https://code.sololearn.com/WAV9uc2u4X7u/?ref=app

2nd Oct 2020, 2:06 PM
DBSRšŸŒ¹šŸŒ¹
DBSRšŸŒ¹šŸŒ¹ - avatar
2 Answers
+ 3
It is... Wrap a window.onload = function(){ //your code } around js Dom is not loaded when executing your code
2nd Oct 2020, 2:37 PM
Oma Falk
Oma Falk - avatar
+ 1
Thank you
2nd Oct 2020, 2:49 PM
DBSRšŸŒ¹šŸŒ¹
DBSRšŸŒ¹šŸŒ¹ - avatar