var while 20 if console log var Math pow console log

1
2
3
4
5
6
7
8
9
var n = 0;
while(n <= 20){
if (n % 2 == 1) {
console.log(n);
};
var s = Math.pow(n, 2);
console.log(s);
n++;
}