Question: What will be the result of the following `for` loop?
<pre>
<code>for (var i = 0; i < 5; i++)</code>
<code>{</code>
<code>console.log(i);</code>
<code>}</code>
</pre>
Answer:
The `for` loop will iterate from 0 to 4 and log each value.
MCQ: What will be the result of the following `for` loop?
<pre>
<code>for (var i = 0; i < 5; i++)</code>
<code>{</code>
<code>console.log(i);</code>
<code>}</code>
</pre>
Correct Answer:A. 0, 1, 2, 3, 4 will be logged
Explanation:
The `for` loop will iterate from 0 to 4 and log each value.