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 setInterval Function in Javascript ?

What is go Method of History Object in Javascript ?

JavaScript Using For Loop

What is Window Object in Javascript ?

What is this Keyword in Javascript ?