Control Flow
↔ Execution Sequence Order of Statement(s)
Block
Source Code Encapsulate in { }
curly braces (excl Object Literals) to define boundary of Lexical Environment
break
JS Keyword to end current loop/switch
Conditional Statement
Control Flow to execute vs boolean
condition
continue
JS Keyword to end execution of Statement in current Iteration of loop, & continue execution with next iteration in loop
Guard Clause
Control Flow condition to trigger early return
Loop
Control Flow to repeat Block Execution
Recursion
function to call itself from its implementation body
References
Imperative
↔ (Paradigm) to express logic with explicit Control Flow via step-wise instructionsDeclarative
↔ (Paradigm) to express logic w/o explicit Control Flow via AbstractionConditional Statement
↔ Control Flow to execute vsboolean
conditionif
↔ Control Flow JS Keyword to optionally execute Block on Boolean Context of expressionwhile
↔ Control Flow JS Keyword to set condition during which loop continues to executedo-while
↔ Control Flow JS Keyword to execute once & then check condition whether to repeatLoop
↔ Control Flow to repeat Block ExecutionTerminal Condition
↔ Control Flow Condition tobreak
Loopfor-in
↔ Control Flow to Loop over iterable INCL ANY AND ALL PROPS !avoidInversion of Control
↔ Design Pattern to invert Control Flow to Callback to increase Modularity & decouple Deps ??Guard Clause
↔ Control Flow condition to trigger earlyreturn