<< Back

Exercise 1.1 - Buttons and Inputs

d) Area and circumference

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.


script.js

This is the JavaScript code behind the above application.