for(var i=0 ; i<=15 ; i++) { if(i%2==0) { console.log(i+" is Even") } else if(i%2 == 1) { console.log(i+" is Odd"); } }
To embed this program on your website, copy the following code and paste it into your website's HTML: