Skip to main content

Ivan Teoh

Something personal yet public

164-exercise24a.js

(Source)

1
2
3
4
for (var total = 2, count = 1; count < 10; count++) {
    total = total * 2;
}
alert(total);