Core: learn it Step 6 of 16 on the Frontend Developer roadmap

Conditions and loops

if, switch, for and for...of work much as in other languages. Always compare with the strict === rather than ==.

Learn it on JeliScript

Resources

More in JavaScript fundamentals

See it on the Frontend Developer roadmap