---
title: "Discussion on \"Real Basics of Loops :: How the 'for loop' works in JavaScript\" | Hashnode"
description: "Discussion on \"Real Basics of Loops :: How the 'for loop' works in JavaScript\". for (initialization; condition; afterthought)\n  statement\n\n\ninitialization is first executed.\n\nand then it goes to condition part and if is true\n\nnow it goes into statement part\n\nAfter executing all the statements\n it goes to afterthought\n\nAnd then g..."
url: "https://hashnode.com/posts/real-basics-of-loops-how-the-for-loop-works-in-javascript/64f16d3e9aaa1f4499d50df7"
---

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

Discussion

# [Real Basics of Loops :: How the 'for loop' works in JavaScript](https://seongjin.hashnode.dev/real-basics-of-loops-how-the-for-loop-works-in-javascript?utm_source=hashnode&utm_medium=feed)

for (initialization; condition; afterthought) statement initialization is first executed. and then it goes to condition part and if is true now it goes into statement part After executing all the statements it goes to afterthought And then g...

Sep 1, 2023 · 1 min read · seongjin.hashnode.dev  
Read the article

## Written by

[Seongjin Park](https://hashnode.com/@itsJin)

@itsJin

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

WEB DEVELOPER

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
