Multiple choice technology web technology

7.How does a "for" loop start?

  1. for (i = 0; i <= 5; i++)

  2. for i = 1 to 5

  3. for (i <= 5; i++)

  4. for (i = 0; i <= 5)

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A JavaScript for loop requires three parts: initialization, condition, and increment. Option A for (i = 0; i &lt;= 5; i++) correctly includes all three components. Option C lacks initialization, and Option D lacks the increment statement.