I tried changing bcakground bodyto javascript and noticed that the following does not work:
document.body.style.background = "#000;"
But if I omit the semicolon, then it works:
document.body.style.background = "#000"
Why is that? Isn't there #000;still a line?
source
share