Frontend Traffic Light (HTML / CSS / JS)
Asked at Salesforce · Coding Questions · Difficulty: Medium · Last asked Jan 30, 2026
Salesforce's signature frontend coding round, asked even of generalist / backend candidates applying to fullstack-titled roles. Build a traffic light that cycles red 4s -> green 1s -> yellow 1s using only HTML, CSS, and vanilla JavaScript (no React allowed in the CoderPad sandbox).
Loading the problem…
More Salesforce interview questions
- Campaign Cost Weekly Partition
- AI / ML Fundamentals Oral Round (AI Engineer)
- Design a Collaborative Spreadsheet (Google Sheets)
- Rate Limiter for Expensive API with User-Configurable Monthly Quota
- Hiring Manager + Behavioral Rounds
- Design an Async Job / Task System