Hi,
I had a function in which I forgot to declare the ID of an element that played an important role in it. But the function still worked, without any console error reports; I saw the omission only today. At first I almost didn't believe it, but the demo linked from https://www.w3schools.com/jsref/prop_html_id.asp confirmed it. If you change that function to
function displayResult() {
myHeader.innerHTML = "Have a nice day!";
}
it works just as well. That raises a few questions:
Since when is that?
How about browser support?
Does W3Schools mention that anywhere and if not, why not?