I thought we had to get an elementy by ID with document.getElementyById before we could set its properties such as innerText or innerHTML.
How long has it been possible to skip straight to the element by using its ID as an identifier on the page without the above function? Should I avoid this or can I just start doing this to save lines of code?
testme.innerText = "What!? The id is already an identifier in scope... and I didn't use `document.getElementById` to set this value.";
<div id="testme"></div>