Want to receive Question of the Day updates? Subscribe Here
JavaScript Question of the Day
Jan. 10, 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
Unfortunately nothing prints when run! Choose the option below that fixes the program.