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 are Different Error Types in Javascript ?

What is Prototypal Inheritance in Javascript ?

JavaScript Getting Absolute Value

What are the Variable Naming Conventions in JavaScript ?

What is Event Capturing in Javascript ?