Flow Control

JavaScript Flow Control Statements

Return

return 'value'; // Stop execution. Value is optional

Break

break label; // If Switch, stop execution, If Loop, exit Loop block, Label optional

Continue

  • skip remainder of this iteration of the loop

Try Catch Throw Finally

try {
    test00("5");
}
catch (e) { // Handle Error
    console.log("Error: test00 Failed: + e.description );
}

TODO: Finish Throw & Finally usage.

Copyright @ 2024 Anne Brown