- A) for (i = 0; i < 10; i++)
- B) for i = 0; i < 10; i++
- C) for (let i = 0; i < 10; i++)
- D) loop i = 0; i < 10; i++
Answer: C) for (let i = 0; i < 10; i++)
Explanation: the correct syntax for creating a for loop in JavaScript is "for (let i = 0; i < 10; i++)". This syntax creates a loop that will execute 10 times, starting with the value of i at 0 and increasing by 1 each time through the loop.
Comments (0)