+ 1
What [0] means when use document.getElementsByClassName
Example Document.getElementsByClassName("whatever")[0].innerHTML = "my question";
1 Respuesta
+ 1
the very first element of the array
Example Document.getElementsByClassName("whatever")[0].innerHTML = "my question";