<p class="pq">Which one of the following is the correct output for the given JavaScript code?</p>

<div class="codeblock">
<div class="dp-highlighter">
<div class="bar">
<div class="tools">
<ol class="dp-xml" start="1">
 	<li class="alt">var <span class="attribute">a</span>=<span class="attribute-value">0</span>;</li>
 	<li class="">var <span class="attribute">b</span> =<span class="attribute-value">0</span>;</li>
 	<li class="alt">while (a <span class="tag">&lt;</span><span class="tag-name">3</span>)</li>
 	<li class="">{</li>
 	<li class="alt">    a++;</li>
 	<li class="">    b += a;</li>
 	<li class="alt">    console.log(b);</li>
 	<li class="">}</li>
</ol>
</div>
</div>
</div>
</div>