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