• Feed
  • Discussions
Illegal shadowing

Illegal shadowing

#illegal-shadowing
0 followers·3 articles

Illegal shadowing

#illegal-shadowing·0 followers·3 articles
Illegal shadowing
krishan
krishan
shadowing-illegal-shadowing.hashnode.dev·Apr 12, 2025
Apr 12, 2025

🧠 Mastering Variable Shadowing and Illegal Shadowing in JavaScript

🔹 What is Variable Shadowing? Variable shadowing occurs when a variable declared within a certain scope (e.g., a function or block) has the same name as a variable declared in an outer scope. The inner variable "shadows" the outer one, making the ou...

Discuss·4 reads
variable shadowing
Bhavesh Jadhav
Bhavesh Jadhav
bhaveshjadhav.hashnode.dev·May 28, 2024
May 28, 2024

Understanding JavaScript Blocks and Scope

Block in JavaScript A block, or compound statement, in JavaScript is defined by the curly braces {}. It is used to group multiple statements together. For example: { let a = 10; console.log(a); } Why Do We Need to Group Statements? We group ...

Understanding JavaScript Blocks and Scope
Discuss·11 likes·41 reads
2Articles1Week
Abhishek Dandriyal
Abhishek Dandriyal
abhishek-dandriyal.hashnode.dev·Apr 08, 2024
Apr 08, 2024

Javascript Scope: Var, Let and Const

Variable shadowing: In JavaScript, variable shadowing occurs when a variable with the same name as a variable in a higher scope is declared in a lower scope, potentially causing confusion; let a = 10; if (true) { let a = 20; console.log(a); } ...

Javascript Scope: Var, Let and Const
Discuss·1 like·16 reads
Illegal shadowing

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

The Stablecoin Surge: How CryptoXpress Is Leading the Charge Toward Financial Liberation

Naomi Antia Benson·56 reads

CryptoXpress: Because Managing Crypto Shouldn't Feel Like Filing Taxes

Prochino·73 reads

The DePIN Revolution: Mapping the World and Earning Onchain with $WIFI.

Patience Uyire·70 reads

Top commenters this week

Sumayya Irfan
Sumayya Irfan
Taji Abdullah
Taji Abdullah
Rishav
Rishav
Marketer lab
Marketer lab
Astha Sharma
Astha Sharma

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior