Want to receive Question of the Day updates? Subscribe Here
JavaScript Question of the Day
Jan. 9, 2025
IncorrectCorrectNo Answer was selectedInvalid Answer
The following program asks a user for input before executing the printAffirmations function.
functionmain(){let count =readInt("How many? ");printAffirmations();}functionprintAffirmations(count){for(let i =0; i < count; i++){
console.log("Nothing is impossible.");}}main();
JavaScript
If the user enters 4, what will be printed to the console?