11 lines
270 B
JavaScript
11 lines
270 B
JavaScript
|
/*
|
||
|
Write JS to make this stoplight work.
|
||
|
|
||
|
When I click on the 'stop' button,
|
||
|
the top light should turn red.
|
||
|
When I click on the 'slow' button
|
||
|
the middle light should turn orange.
|
||
|
When I click on the 'go' button
|
||
|
the bottom light should turn green.
|
||
|
*/
|