List of questions
Related questions
Question 79 - Certified JavaScript Developer I discussion
Refer to the HTML below:
<div id="main">
<ul>
<li>Leo</li>
<li>Tony</li>
<li>Tiger</li>
</ul>
</div>
Which JavaScript statement results in changing " Tony" to "Mr. T."?
A.
document.querySelectorAll('$main ONY').innerHTML = ' Mr. T. ';
B.
document.querySelector('$main li:second-child').innerHTML = ' Mr. T. ';
C.
document.querySelector('$main li.Tony').innerHTML = ' Mr. T. ';
D.
document.querySelector('$main li:nth-child(2)'),innerHTML = ' Mr. T. ';
Your answer:
0 comments
Sorted by
Leave a comment first