Exam4Training

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

Exit mobile version