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