2 weeks ago
7 lines490 B
Exercises: lesson 7
- Make the example ask for its input instead of using a fixed value.
- Run
window.sqland change one value. Write down what you expect, then run it again and compare. - Rewrite the main part so it runs twice with two different inputs, without copying the code.
- Combine this lesson with the previous one: use something from both in a small program of your own.
- What happens with an empty input? Change the code so it handles that case with a clear message.