---
title: "Discussion on \"For and While Loops  in JavaScript\" | Hashnode"
description: "Discussion on \"For and While Loops  in JavaScript\". What are loops?\nIn computer science loops are control flow statements used for conveying iteration. Particularly, loops are used to execute a block of code repeatedly until a certain condition is met. Loops are exceptionally useful for accomplishing ..."
url: "https://hashnode.com/posts/for-and-while-loops-in-javascript/64d906b132aeae583f880865"
---

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

Discussion

# [For and While Loops in JavaScript](https://mattsblog.hashnode.dev/for-and-while-loops-in-javascript?utm_source=hashnode&utm_medium=feed)

What are loops? In computer science loops are control flow statements used for conveying iteration. Particularly, loops are used to execute a block of code repeatedly until a certain condition is met. Loops are exceptionally useful for accomplishing ...

Aug 13, 2023 · 2 min read · mattsblog.hashnode.dev  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#loops](https://hashnode.com/tag/loops)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Matthew Stewart](https://hashnode.com/@Matt827)

@Matt827

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

Beginner Software Engineer Learning Blog

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
