---
title: "Discussion on \"Control Flow and Looping in JS: If, Else, Switch, For loop and While loop explained\" | Hashnode"
description: "Discussion on \"Control Flow and Looping in JS: If, Else, Switch, For loop and While loop explained\". JS is a interpreted language, where execution of code goes from line to line. There are condition statements, where if condition is true then code inside it will get executed, else then other block of"
url: "https://hashnode.com/posts/control-flow-and-looping-in-js-if-else-switch-for-loop-and-while-loop-explained/69b99d20c22d3eeb8ae8f28a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Control Flow and Looping in JS: If, Else, Switch, For loop and While loop explained](https://jsoperatorss.hashnode.dev/control-flow-and-looping-in-js-if-else-switch-for-loop-and-while-loop-explained?utm_source=hashnode&utm_medium=feed)

JS is a interpreted language, where execution of code goes from line to line. There are condition statements, where if condition is true then code inside it will get executed, else then other block of

Mar 17 · 6 min read · jsoperatorss.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#conditional-statement](https://hashnode.com/tag/conditional-statement)
-   [#loops](https://hashnode.com/tag/loops)

## Written by

[Srujan Pattar](https://hashnode.com/@srujanpattar)

@srujanpattar

  
[View profile](https://hashnode.com/@srujanpattar)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
