Put the Day in Order
JavaScript
10 pts
Put the Day in Order
The statements in the starter code are in the wrong order. Move them so the program prints Abel’s school day in the right order, then add a fifth statement that prints the number of lessons today, calculated as 4 + 3. The output must be exactly:
1. Wake up at 6:30 2. School starts at 7:30 3. Lunch break at 12:00 4. Football training at 16:00 5. Lessons today: 7
Use exactly five console.log() statements.
Checklist
- Print the five lines of the day in the right order.
- Let JavaScript calculate the number of lessons.
- Use exactly five statements.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
