---
title: "Comment by Habibur Rahman on \"JavaScript Guess the Output: মজার কিছু ধাঁধা! 🚀\" | Hashnode"
description: "That's a great example showing the block scope of let ! Adding a parallel example using var in the same if block would be really helpful. It would clearly show"
url: "https://hashnode.com/posts/javascript-guess-the-output/67dd9bd160d64c65db50aead/comment/69203f33bf2302ee3aab747d"
---

[Discussion](https://hashnode.com/posts/javascript-guess-the-output/67dd9bd160d64c65db50aead)

Comment [JavaScript Guess the Output: মজার কিছু ধাঁধা! 🚀](https://hashnode.com/posts/javascript-guess-the-output/67dd9bd160d64c65db50aead)

[Habibur Rahman](https://hashnode.com/@dev-habib)

[Nov 21, 2025](https://hashnode.com/posts/javascript-guess-the-output/67dd9bd160d64c65db50aead/comment/69203f33bf2302ee3aab747d)

That's a great example showing the block scope of `let`! Adding a parallel example using `var` in the same `if` block would be really helpful. It would clearly show the difference between block-scoped (`let`) and function-scoped (`var`), making the concept of scope much clearer for beginners. 👍
