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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments