good day I am new to javascript and I don't understand what line of code is this?
document.getElementsByTagName("INPUT")[0].setAttribute("type", "button");
I don't understand why is there ("INPUT")[0] <-----the [0] part on the code? can someone explain?
appreciate