+ 5
There will be a semi colon at the end of first line, because it is used as statement terminator.
In line 2 you've written the function name as "show page" instead of "showPage" which you have declared in line 6, because JS doesn't allow whitespaces in names and it is also a case sensitive programming language so "showpage" and "showPage" are two different names.
In line 7 and 8 the spelling of "style" is not correct (you've writen "stayle"). Further in line 7 and 8 you have used ":" instead of "=" as in JS it is used to define any value. And in both the lines value should be written in inverted commas (") or else it will show an error.
And in line 8 you have written "myDiv" instead of "mydiv" (as JS is case sensitive).
Here is the debugged and running code:
alert ("pls weid");
var myVar;
function myFunction(){
myVar =setTimeout(showPage, 200);
}
function showPage(){
document.getElementById("loader").style.display = "none";
document.getElementById("mydiv").style.display = "block";
}
Happy Coding đ€