×
×
Correct!
Change the text of the first element that has the class name "test".
<p class="test"></p>
<p class="test"></p>
<script>
@(52) = "Hello";
</script>
<p class="test"></p>
<p class="test"></p>
<script>
document.getElementsByClassName("test")[0].innerHTML = "Hello";
</script>
<p class="test"></p>
<p class="test"></p>
<script>
document.getElementsByClassName("test")[0].innerText = "Hello";
</script>
<p class="test"></p>
<p class="test"></p>
<script>
document.getElementsByClassName('test')[0].innerHTML = "Hello";
</script>
<p class="test"></p>
<p class="test"></p>
<script>
document.getElementsByClassName('test')[0].innerText = "Hello";
</script>
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 67 exercises.
Are you sure you want to continue?