ddeveloperr
3/24/2015 - 7:48 AM

While JS

While JS

var result = 1;
var counter = 0;
while (counter < 10) {
  result = result * 2;
  counter = counter + 1;
}
console.log(result);