Want to receive Question of the Day updates? Subscribe Here
JavaScript Question of the Day
April 11, 2025
IncorrectCorrectNo Answer was selectedInvalid Answer
What will the following program print to the console?
functionmain(){printOutput(15);}functionprintOutput(num){if(num >10){
console.log("This number is greater than 10");}if(num <20){
console.log("This number is less than 20");}else{
console.log("This number is odd");}}main();