Control Flow
The control flow is the path of execution through a program.
Related concepts: SequenceConditionalLoop
Closest Wikipedia entry: Control flow — In computer science, control flow (or flow of control) is the order in which individual statements, instructions or function calls of an imperative program are executed or evaluated. The emphasis on explicit control flow distinguishes an imperative programming language from a declarative programming language. Within an imperative programming language, a control flow statement is a statement that results in a choice being made as to which of two or more paths to follow.
Misconceptions about Control Flow34 documented Misconceptions
Check YourselfConditionalIsSequence
If-else is equivalent to sequence of two ifsDeferredReturn
A return statement in the middle of a function doesn't return immediatelyIfIsLoop
The body of an if-statement executes repeatedly, as long as the condition holdsNoShortCircuit
and/or always evaluate both operandsOutsideInFunctionNesting
Nested function calls are invoked outside inRecursiveFunctionNeedsIfElse
A recursive function needs to contain an if-else statementRightToLeftChaining
Chained accesses are invoked from right to left