This is the final chapter of our exploration into the syntax of JavaScript. We have so far covered its more atomic components its many types, operators, declarations, and statements. Gaining fluency in these is crucial to working effectively with the language at a foundational level and allows us now to take a step back and consider a larger concern: controlling a program's flow. We'll combine all of the syntax we've picked up into clean and understandable programs.
In this chapter, we will cover the following topics:
- What is control flow?
- Imperative versus declarative programming
- The movement of control
- Statements of control flow
- Handling cyclomatic complexity
- Asynchronous control flow