Traffic Light Logic
A car obeys a traffic light. Red means stop, yellow means get ready, green means go. Three possible answers means you need else if.
What you'll learn
Chain conditions together with else if.
New command
else if (light === "yellow")
๐ป Code Editorjs
๐ฌ
Press Run Code to see your creation!