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

What is Namespace in Javascript ?

JavaScript Taking the Square Root of a Number

What are Advantages of Using External Javascript ?

What is Code Smell in Javascript ?

What are Asynchronous Scripts in Javascript ?