0

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.

ggorlen
  • 33,459
  • 6
  • 59
  • 67
Ilo
  • 1
  • 3

0 Answers0