Salesforce·Software Engineer·Technical Phone Screen
Jun 2026
Salesforce full-stack screen where they had me build a traffic light from scratch in plain HTML, CSS, and JS. No frameworks, which was fine, but the real test was how you handled the follow-up requirements they kept stacking on.
- Build a working traffic light in vanilla HTML, CSS, and JavaScript. It should cycle through red, yellow, and green automatically with realistic timing, and only one light should be active at a time.
- Now add a manual override button that lets the user force a specific light on, and make the timings configurable rather than hardcoded.
- Extend the traffic light to include a pedestrian crossing signal that coordinates with the vehicle lights, and add fade transitions between light states.
- How would you refactor this into a React component structure?
“I got the basic cycling working pretty fast, setTimeout in a loop, three divs, done.” The rest of the author's notes on Software Engineer interview at Salesforce, Technical Phone Screen round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post