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