View all questions & answers for the JavaScript-Developer-I exam
Refer to the HTML below:
Which JavaScript statement results in changing “ The Lion.”?
document.querySelectorAll(‘$main $TONY’).innerHTML = ’“ The Lion
document.querySelector(‘$main li:second-child’).innerHTML = “The Lion ’;
document.querySelector(‘$main li.Tony’).innerHTML = ’“ The Lion ’;
document.querySelector(‘$main li:nth-child(2)’),innerHTML = “ The Lion. ’;
Submit