Table of Content:
- What Exactly Is A Control Structure?
- What Are Conditions?
- The IF Control Structure
- IF…ELSE
- SWITCH
- TERNARY
- Conclusion
- Next week
Critical to your success as a good JavaScript programmer will be your understanding of control structures and how best to use them. In my past articles I have use IF and FOR control structures, and while I have explained them in brief, they really need a closer look.
In addition to those already mentioned, we have the IF.ELSE, the SWITCH, and even something called a TERNARY. Knowing what you have available to you and when to use it will allow you to write good effective scripts. And that's the name of the game.