-
Notifications
You must be signed in to change notification settings - Fork 0
If You Don't Mind - Grading #4
Copy link
Copy link
Open
Description
This code runs.
Since you've already set 'HOURS' to '7', you can simply add 1 to increment to the next hour. By hard coding '9' you're jumping ahead 2 hours.
Instead of setting strings to 2 separate variables of 'morning' and 'evening' and then setting a 3rd variable, 'day', equal to one of them you can simplify. Eliminate 'morning' and 'evening' entirely and instead, simply set 'day' equal to the desired string when you're declaring it in the if/else.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels