Which JavaScript statement results in changing “ The Lion.”?
Refer to the HTML below:

Which JavaScript statement results in changing “ The Lion.”?
A . document.querySelectorAll(‘$main $TONY’).innerHTML = ’“ The Lion
B. document.querySelector(‘$main li:second-child’).innerHTML = “ The Lion ’;
C. document.querySelector(‘$main li.Tony’).innerHTML = ’“ The Lion ’;
D. document.querySelector(‘$main li:nth-child(2)’),innerHTML = “ The Lion. ’;
Answer: A
Latest JavaScript Developer I Practice Questions with 144 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments