Bhavesh Jadhavbhaveshjadhav.hashnode.dev·May 28, 2024Understanding JavaScript Blocks and ScopeBlock 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 ...11 likes·41 reads2Articles1Week
SOUMITRA-SAHAssblogs.hashnode.dev·May 19, 2024Rust Mastery Week #1Hi there! My name is Soumitra Saha. You can find me on LinkedIn, Twitter, and GitHub. I am a Full-Stack TypeScript Developer with over 2 years of experience. In this blog, I will document my journey of learning Rust. I will post updates on my progres...vscode extensions for rust
Abhishek Dandriyalabhishek-dandriyal.hashnode.dev·Apr 8, 2024Javascript Scope: Var, Let and ConstVariable 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); } ...1 likeIllegal shadowing
Vijaya Shreevijayashree.hashnode.dev·Mar 13, 2024Block scope and variable shadowing in JSTo understand shadowing in JavaScript, we need to be clear with the scope first. Refer the below link : SCOPE Shadowing is nothing but a variable replacing the value of another variable inside a block if declared with same name. var a = 10 ; ...variable shadowing
Ekaterine (Catherine)ekaterine-mitagvaria.hashnode.dev·Sep 25, 2023What is Variable Shadowing in JavaScript?To understand variables shadowing in JavaScript, first, we need to understand the scope. In JavaScript, we have global scope, function scope, and block scope. The scope is something like a box, that has other boxes inside of it. Each box represents a...JavaScript