InterviewDB
Question
Traffic Light: Implement a Timed Traffic Light State Machine in JavaScript
phone
Question Details
Round 1 - Frontend / Coding Implement a traffic light component and its underlying state machine. The light cycles: green (30s) -> yellow (5s) -> red (25s) -> green ... Implement a TrafficLight class: Example: Round 2 - React Component Render the lig…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Frontend
Phone