---
title: "Discussion on \"Understanding Control Flow in JavaScript \" | Hashnode"
description: "Discussion on \"Understanding Control Flow in JavaScript \". When we write programs, the code does not always run in a straight line. Sometimes we need the program to make decisions. For example:\n\nIf a person is older than 18, allow them to vote\n\nIf marks are a"
url: "https://hashnode.com/posts/understanding-control-flow-in-javascript/69b6792605c006164cf126b4"
---

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

Discussion

# [Understanding Control Flow in JavaScript](https://understanding-javascript-methods.hashnode.dev/understanding-control-flow-in-javascript?utm_source=hashnode&utm_medium=feed)

When we write programs, the code does not always run in a straight line. Sometimes we need the program to make decisions. For example: If a person is older than 18, allow them to vote If marks are a

Mar 15 · 4 min read · understanding-javascript-methods.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#conditional-statement](https://hashnode.com/tag/conditional-statement)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Jainam Jain](https://hashnode.com/@jainamblogs)

@jainamblogs

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

Computer Science Student

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
