6 days ago
7 lines509 B
Exercises: lesson 2
- Run
functions.jsand change one value. Write down what you expect, then run it again and compare. - Make the example ask for its input instead of using a fixed value.
- Explain the example to someone who hasn't taken the course. Which part was hardest to explain?
- What happens with an empty input? Change the code so it handles that case with a clear message.
- Look up one function or command the example uses in the official documentation. Note one option you didn't know.