<< Back

Exercise 2.1 - Lights and Buttons

a) Light up the LED

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

Press the button to light the LED in green.

Enter a color's RGB code to make the LED light up that color!


script.js

This is the JavaScript code behind the above application.