Object-Oriented Programming · Roblox · Easy
Create a traffic-light widget that cycles on its own, built with nothing but HTML, CSS and plain JavaScript. Frameworks and third-party libraries such as React, Vue or jQuery are off-limits. Requirements Display three lights: red, yellow and green. At every moment, one and only one of them is lit. Cycle through the lights automatically in the following sequence: By default, each light stays on for: Light Duration Red 3000 ms Green 3000 ms Yellow 1000 ms When the page…