I’m curious as to why in exercise 9 it says:
Don’t forget about runners exactly 18 years old!
else statement that logs a statement to the console telling the runner to see the registration desk.
I’m not sure if I understand it right but isn’t it much easier just to include the 18 years’ old with the comparison operator “>=” ? instead of making it a new “else” statement? Thank you in advance.
@parapaa This is because if a runner is 18, the program asks the runner to see the registration desk. This does not happen with any other runner age. In other words, the event the code is running if the runner is 18 is different to that of runners whose ages are above or below 18.