<< Back

Exercise 1.1 - Buttons and Inputs

f) Validate input

This is the console. All output created with writeLog() is shown here.

Please type the radius of a circle and press "Calculate". I will print the areas and circumference for the circle to the console. This time, I will also check your inputs.


script.js

This is the JavaScript code behind the above application.