module 7 quiz | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

module 7 quiz

why there is document in the first line of code? GIVEN CODE:- var arr = document . getElementsByTagName("p"); for(var x=0; x<arr.length; x++) { arr[x].innerHTML="SoloLearn"; } REQUEST :- please upvote the question

16th Jul 2020, 5:30 PM
Kumar Sarthak
Kumar Sarthak - avatar
1 ответ
0
You are here to learn not for upvotes ,it is var arr=document.getElementsByTagName("p")
16th Jul 2020, 5:41 PM
Abhay
Abhay - avatar