how to print odd number javascript code example Example: log odd numbers js for(var n = 0; n <= 10; n+=2) console.log(n)