+ 5
Hi, Why should l get an error Undefined Timerinr in my code?
https://code.sololearn.com/WlOhBIkPFYxq/?ref=app https://code.sololearn.com/WlOhBIkPFYxq/?ref=app
3 ответов
+ 2
Js script getting executed before loading of HTML Dom,you need to put all your js code in the following function
window.onload=function(){
}
Now js runs only after document is loaded
+ 1
That's because the js part wasn't run when it was executed. And their was no Timerinr.
https://code.sololearn.com/WqCN1AlKkknG/?ref=app