Why don't I get the same result from these two code blocks?
<p>I'm wondering why I'm not getting the same result form these two code blocks.</p>

<pre><code>var line = "";
var counter = 0;
while (counter &lt; 10) {
  line = line + "#";
  print(line);
  counter = counter + 1;
}
</code></pre>

<p>-</p>

<pre><code>var NumSym = "";

for(i = 0; i &lt; 10; i++){

print(NumSym + "#");

}
</code></pre>

<p>Also I'm not sure what to call these blocks, expressions perhaps? Thanks for the help in advanced.</p>
