<< Back

Exercise 1.1 - Buttons and Inputs

b) Odd or even

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

Please type a number and press "Check odd or even". I will let you know whether the number is odd or even.


script.js

This is the JavaScript code behind the above application.