Javascript Exercise – Even and Odd Numbers

 Even and Odd Numbers

 

//Odd and even exercise

 

let startcounter = showNumbers(19);

 

function showNumbers(startcounter) {
for (let limit = 0; limit <= startcounter; limit++)
if(limit % 2 === 0) {
console.log(limit + ‘ “Even”‘)
}
else {
console.log(limit + ‘ “Odd”‘)
}
}