Quiz on Repetition with Loops

Test your knowledge of repetition with loops.

1

What is the result when the following program is executed?

for (let a of [9, 2, 5]) {
    console.log(a);
}
A)

It shows an error.

B)

9
2
5

C)

9
7
5

D)

2
5
9

Question 1 of 70 attempted

Get hands-on with 1400+ tech skills courses.