What are Control Flow Statements in Javascript ?

You can change the sequence in which Javascript statements are executed by using control flow statements. Below are types of control flow statements..

Selection statements : Selection statements use condition to determine which group of statements should be executed, if….else, if and switch are selection statements.

Loops : Loops allow you to execute group of statements repeatedly till condition is satisfied, while, do…while and for are loops.

Jump statements : Jump statements are used to break or exit loop, break and continue are jump statements.



You May Interest

JavaScript Adding Elements to Array

JavaScript Getting Absolute Value

What are Important Events in Javascript ?

What is Difference Between Undefined and Null in Javascript ?

Javascript Removing Elements from Array