Are these two code snippets the same?
document.getElementById('Thing').style.backgroundColor = "blue"
Thing.style.backgroundColor = "blue"
This is assuming the id has been previously assigned a different background color.
Are these two code snippets the same?
document.getElementById('Thing').style.backgroundColor = "blue"
Thing.style.backgroundColor = "blue"
This is assuming the id has been previously assigned a different background color.