โ† Ages 8โ€“10/Traffic Light Logic
๐Ÿ“– Story

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!

โฎ Previous lesson