If I go to the developer console, say for this page, and type the following:
console.log(footer);
I get something like the following:
<footer id="footer" class="site-footer js-footer" role="contentinfo">
It appears that the id
of the element doubles up as a variable. I haven’t yet declared or assigned the variable.
Where does this variable come from? I tried this in Firefox, Safari and Chromium, and they all do it.
I have also found that I can manipulate such a variable in real code without declaring it.
This actually makes debugging tricky, as I’m looking for an unset variable.