title: Calculating 2 ^ 10
body: <pre><code>   // CALCULATE 2 ^ 10
     var base = 2;
     var power = 0;
     var answer = 1; 
  
     while ( power &lt; 10 )
     {
        answer = base * 2;
        power = power +  1;  
     }
  
     alert(answer);
  </code></pre>
  
  <p>Why doesn't this produce 1024? It prints 4.</p>