```
   // CALCULATE 2 ^ 10
   var base = 2;
   var power = 0;
   var answer = 1; 

   while ( power < 10 )
   {
      answer = base * 2;
      power = power +  1;  
   }

   alert(answer);

```

Why doesn't this produce 1024? It prints 4.