Document Ruta’s Reading Log
JavaScript
20 pts
Document Ruta’s Reading Log
Make Ruta’s program clean and well documented:
- Start with a multi-line
/* … */comment that is at least two lines long (for example the program name and the author). - Switch off the three lines
Pages on Wednesday,Test line 1andTest line 2with one/* … */comment around them (keep them in the code). - Add an end-of-line
//comment after theTotal pagesstatement.
The output must be:
Ruta's reading log Pages on Monday: 12 Pages on Tuesday: 18 Total pages: 30
Checklist
- Start with a multi-line comment of at least two lines.
- Switch off the three lines with one block comment.
- Add an end-of-line comment to the total.
- Print the four lines of the log.
🔑 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.
