Lab - Traffic Light

Lab: Traffic Light

  • Using Atom, open the folder called traffic_light in your lesson_09_files folder. You will be using these files as starting off point.

  • DurigThe yellow button changes the bulb to purple and the green light does not work, change the code so that the traffic light works correctly.

  • Instructions

    • Work in pairs

    • Use “pattern matching” to identify what needs to fix the broken code

    • Your job is to fix this code: