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