New course! Every coder should learn Generative AI!
Try a free lesson+ 12
do this:
window.onload=function(){
var date=new Date()
document.body.innerHTML = "<h1>Todays date is"+ date + "</h1>";
}
+ 12
Yes.
+ 11
And it is null because the body hasn't loaded yet.
+ 10
Which code ?