JavaScript Quiz
10 questions · no time limit
0:00
WEB PROGRAMMING (BROWSER)
Question 1 of 10
No time limit
Current
Answered
Flagged
Not seen
PASSAGE
<div id="m"><span>A</span><span hidden>B</span></div>
<script>
const m = document.querySelector("#m");
const before = [m.textContent, m.innerText];
m.textContent += m.innerText;
const after = [m.textContent, m.childElementCount];
</script>
What are the values of
before and after after the script runs? YOUR PROGRESS
10
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F
Answers save as you go · flagged questions come back at the end