4 months ago
8 lines627 B
Exercises: lesson 9
- Add a check that prints a warning when a result looks wrong (negative, empty, too big).
- What happens with an empty input? Change the code so it handles that case with a clear message.
- Run
weather.jsand change one value. Write down what you expect, then run it again and compare. - Look up one function or command the example uses in the official documentation. Note one option you didn't know.
- Combine this lesson with the previous one: use something from both in a small program of your own.
- Rewrite the main part so it runs twice with two different inputs, without copying the code.