You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
for (var x=0; x<=15; x++) {
|
|
if (x === 0) {
|
|
console.log(x + " is even");
|
|
}
|
|
else if (x % 2 === 0) {
|
|
console.log(x + " is even");
|
|
}
|
|
else {
|
|
console.log(x + " is odd");
|
|
}
|
|
}
|