Stoplight Exercise
As always, fork and clone this repo. Submit a Pull Request when you are done.
Stoplight
Wire up the buttons to the left of the stoplight to toggle the on/off state of each bulb.
Hints
- Retrieve a DOMElement with
document.querySelector
or similar method - Attach event listeners with
addEventListener
- Set the color of a bulb with
background-color
Description
Languages
JavaScript
39.7%
CSS
31.7%
HTML
28.6%