Among the following given JavaScript snipped codes, which is more efficient?

Code A
<div class="codeblock">
<div class="dp-highlighter">
<ol class="dp-xml" start="1">
 	<li class="alt">for(var <span class="attribute">number</span>=<span class="attribute-value">10</span>;number<span class="tag">&gt;</span>=1;number--)</li>
 	<li class="">{</li>
 	<li class="alt">document.writeln(number);</li>
 	<li class="">}</li>
</ol>
Code B
<div class="codeblock">
<div class="dp-highlighter">
<ol class="dp-xml" start="1">
 	<li class="alt">var <span class="attribute">number</span>=<span class="attribute-value">10</span>;</li>
 	<li class="">while(number<span class="tag">&gt;</span>=1)</li>
 	<li class="alt">{</li>
 	<li class="">document.writeln(number);</li>
 	<li class="alt">       number++;</li>
 	<li class="">}</li>
</ol>
</div>
</div>
</div>
</div>