Want to receive Question of the Day updates? Subscribe Here
JavaScript Question of the Day
March 24, 2025
IncorrectCorrectNo Answer was selectedInvalid Answer
Consider the following program:
constMAX=15;functionmain(){for(let i =1; i <=MAX; i++){if(i %3==0){
console.log("Karel");}elseif(i %5==0){
console.log("Tracy");}elseif(i %3==0&& i %5==0){
console.log("Karel and Tracy");}}}main();
JavaScript
What will be the last thing printed to the console?