Skip to main content

Ivan Teoh

Something personal yet public

164-exercise22.js

(Source)

1
2
3
4
5
6
7
var total = 2;
var count = 1;
while (count < 10) {
    total = total * 2;
        count = count + 1;
}
alert(total);