Feb 4 · 2 min read · Apa itu shadowing variable, shadowing variable adalah di mana variabel yang dideklarasikan dalam lingkup (scope) lokal memiliki nama yang sama dengan variabel di lingkup global, untuk saya yang lebih sering menggunakan Java shadowing variable ini seo...
Join discussion
Dec 28, 2025 · 5 min read · Hi everyone! this is Jimmy , and this is the sixth article in my series “Breaking Things with Go.” In this series, I document my journey through Jon Bodner’s Second Edition: Learning Go – An Idiomatic Approach to Real-World Go Programming and explore...
Join discussion
May 23, 2025 · 5 min read · 1 What Is Shadowing? TermIn one sentence ShadowingDeclaring a new variable with the same name in a nested (inner) scope, thereby hiding the outer one only inside that inner scope. let title = 'Global'; function setTitle() { let title = 'L...
Join discussionApr 12, 2025 · 3 min read · 🔹 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...
Join discussionFeb 5, 2025 · 1 min read · Variable shadowing occurs when a local variable (declared inside a method, constructor, or block) has the same name as an instance variable (declared at the class level). In this case, the local variable takes precedence within its scope, meaning it ...
Join discussionFeb 5, 2025 · 1 min read · Variable shadowing occurs when a local variable (inside a method, constructor, or block) has the same name and type as an instance variable (declared at the class level). In this case, the local variable takes precedence within its scope. However, yo...
Join discussionMay 28, 2024 · 3 min read · 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 ...
Join discussion
May 19, 2024 · 14 min read · Hi 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...
Join discussion
Apr 8, 2024 · 1 min read · 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); } ...
Join discussion