---
title: "Discussion on \"Understanding Loops in Programming: For Loop vs While Loop\" | Hashnode"
description: "Discussion on \"Understanding Loops in Programming: For Loop vs While Loop\". We’re diving into the basics of loops in programming. We’ll look at two essential types: for loops and while loops, and when to use each!"
url: "https://hashnode.com/posts/understanding-loops-in-programming-for-loop-vs-while-loop/672266088fc9b8ba206fc5e9"
---

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

Discussion

# [Understanding Loops in Programming: For Loop vs While Loop](https://comon.hashnode.dev/understanding-loops-in-programming-for-loop-vs-while-loop?utm_source=hashnode&utm_medium=feed)

We’re diving into the basics of loops in programming. We’ll look at two essential types: for loops and while loops, and when to use each!

Oct 30, 2024 · 4 min read · comon.hashnode.dev  
Read the article

-   [#while-loops](https://hashnode.com/tag/while-loops)
-   [#loops-in-javascript](https://hashnode.com/tag/loops-in-javascript)
-   [#for-loops](https://hashnode.com/tag/for-loops)

## Written by

[Collins Omondi](https://hashnode.com/@comon)

@comon

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

Full Stack Developer | React JS | Node JS | Open-Sourcer | Nextjs | Django | React-Native | Flask | GO | bash

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
