---
title: "#block-scope articles | Hashnode"
description: "Explore 11 articles tagged #block-scope on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/block-scope"
---

Tag

# #block-scope

11 posts · 0 followers

[pushpesh kumar](https://hashnode.com/@pushpeshkumar) · [May 24, 2025](https://hashnode.com/posts/js-fundamentals-8-primitive-vs-reference-values-in-javascript/6831c36c3639279661c7d805)

### [JS Fundamentals #8 — 🧩 Primitive vs Reference Values in JavaScript](https://pushpesh-js-articles.hashnode.dev/js-fundamentals-8-primitive-vs-reference-values-in-javascript?utm_source=hashnode&utm_medium=feed)

One of the most fundamental concepts in JavaScript that often confuses developers is the difference between primitive and reference values. This distinction affects how variables are stored, copied, compared, and passed to functions. Understanding th...

11 min read · [pushpesh-js-articles.hashnode.dev](https://pushpesh-js-articles.hashnode.dev/js-fundamentals-8-primitive-vs-reference-values-in-javascript?utm_source=hashnode&utm_medium=feed)

[Martin Mwenda](https://hashnode.com/@martin254) · [Aug 19, 2024](https://hashnode.com/posts/understanding-javascript-var-let-and-const/66c3d47aab87ce85ba3b28e0)

### [Understanding Javascript var, let and const](https://javascriptmasteryhub.hashnode.dev/understanding-javascript-var-let-and-const?utm_source=hashnode&utm_medium=feed)

Learn the key differences between var, let, and const

4 min read · [javascriptmasteryhub.hashnode.dev](https://javascriptmasteryhub.hashnode.dev/understanding-javascript-var-let-and-const?utm_source=hashnode&utm_medium=feed)

[Bhavesh Jadhav](https://hashnode.com/@bhavesh002) · [May 28, 2024](https://hashnode.com/posts/understanding-javascript-blocks-and-scope/6656354c303ae8e9e596c141)

### [Understanding JavaScript Blocks and Scope](https://bhaveshjadhav.hashnode.dev/understanding-javascript-blocks-and-scope?utm_source=hashnode&utm_medium=feed)

Mastering JavaScript Blocks, Scopes, and Shadowing

3 min read · [bhaveshjadhav.hashnode.dev](https://bhaveshjadhav.hashnode.dev/understanding-javascript-blocks-and-scope?utm_source=hashnode&utm_medium=feed)

[Bhavesh Jadhav](https://hashnode.com/@bhavesh002) · [May 27, 2024](https://hashnode.com/posts/javascript-essentials-understanding-scope-lexical-environment-and-hoisting/6654df310a4569c79bed6d08)

### [JavaScript Essentials: Understanding Scope, Lexical Environment, and Hoisting](https://bhaveshjadhav.hashnode.dev/javascript-essentials-understanding-scope-lexical-environment-and-hoisting?utm_source=hashnode&utm_medium=feed)

Master JavaScript Scope, Lexical Environment, and Hoisting: Key concepts for writing predictable and bug-free code

3 min read · [bhaveshjadhav.hashnode.dev](https://bhaveshjadhav.hashnode.dev/javascript-essentials-understanding-scope-lexical-environment-and-hoisting?utm_source=hashnode&utm_medium=feed)

[Zakeer Hussain Syed](https://hashnode.com/@zakeer) · [Apr 23, 2024](https://hashnode.com/posts/javascript-variables-master-var-let-const-for-cleaner-code/6627a600b5c91cb3b65cdca0)

### [JavaScript Variables: Master var, let, & const for Cleaner Code](https://fullstackinstitute.hashnode.dev/javascript-variables-master-var-let-const-for-cleaner-code?utm_source=hashnode&utm_medium=feed)

Understand the essentials of JavaScript variables (var, let, const) with clear examples. Learn about hoisting, scope, and how to write better code.

3 min read · [fullstackinstitute.hashnode.dev](https://fullstackinstitute.hashnode.dev/javascript-variables-master-var-let-const-for-cleaner-code?utm_source=hashnode&utm_medium=feed)

[Meghana S K](https://hashnode.com/@meghanask) · [Apr 2, 2024](https://hashnode.com/posts/scope-in-javascript/660c0a0149f811926bbef092)

### [Scope in Javascript](https://meghanask.hashnode.dev/scope-in-javascript?utm_source=hashnode&utm_medium=feed)

Javascript scope for variables. Lexical scope, function scope, block scope, global scope. Variables accessibility

2 min read · [meghanask.hashnode.dev](https://meghanask.hashnode.dev/scope-in-javascript?utm_source=hashnode&utm_medium=feed)

[Ojas Elawadhi](https://hashnode.com/@ojaselawadhi) · [Nov 17, 2023](https://hashnode.com/posts/hoisting-in-javascript-demystifying-the-lift-and-shift/655783d2ed5dd693763573a4)

### [Hoisting in JavaScript: Demystifying the 'Lift and Shift'](https://ojaselawadhi.tech/hoisting-in-javascript-demystifying-the-lift-and-shift?utm_source=hashnode&utm_medium=feed)

JavaScript, the language of the web, has its share of enchanting mysteries. One such mystery is "hoisting." Imagine it as a magical 'Lift and Shift' that happens behind the scenes. Let's unravel this wizardry in the world of JavaScript and make it as...

2 min read · [ojaselawadhi.tech](https://ojaselawadhi.tech/hoisting-in-javascript-demystifying-the-lift-and-shift?utm_source=hashnode&utm_medium=feed)

[Corina Murg](https://hashnode.com/@Corina) · [Oct 27, 2023](https://hashnode.com/posts/demystifying-function-declarations-within-conditional-blocks/6541ba3bdd175ae1394fbd18)

### [Demystifying Function Declarations Within Conditional Blocks](https://corina.hashnode.dev/demystifying-function-declarations-within-conditional-blocks?utm_source=hashnode&utm_medium=feed)

How Hoisting Works in Conditional Terrains

2 min read · [corina.hashnode.dev](https://corina.hashnode.dev/demystifying-function-declarations-within-conditional-blocks?utm_source=hashnode&utm_medium=feed)

[Nicole C.](https://hashnode.com/@thepronicole) · [Sep 17, 2023](https://hashnode.com/posts/the-scoop-on-scopes-javascript/65075a263d76708580f3a100)

### [The Scoop on Scopes JavaScript](https://myblog.thepronicole/the-scoop-on-scopes-javascript?utm_source=hashnode&utm_medium=feed)

Okay so you have declared your variable and you are ready to put it in use! You have an error. It's saying ReferenceError: (your variable) is not defined. That makes no sense you have declared it with a const. You're looking right at the variable. W...

3 min read · [myblog.thepronicole](https://myblog.thepronicole/the-scoop-on-scopes-javascript?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/the-scoop-on-scopes-javascript/65075a263d76708580f3a100)

[Anirudha Patil](https://hashnode.com/@AnirudhaPatil) · [Apr 12, 2023](https://hashnode.com/posts/javascript-interview-question-function-scope-vs-block-scope/6436e7d4d3b300c1dde36e1d)

### [JavaScript Interview Question: Function Scope vs. Block Scope](https://atomicjuggernaut.hashnode.dev/javascript-interview-question-function-scope-vs-block-scope?utm_source=hashnode&utm_medium=feed)

Learn about the difference between function and block scope in JavaScript and how variables behave within these scopes. Gain a understanding of hoisting.

3 min read · [atomicjuggernaut.hashnode.dev](https://atomicjuggernaut.hashnode.dev/javascript-interview-question-function-scope-vs-block-scope?utm_source=hashnode&utm_medium=feed)
