Martin Mwendajavascriptmasteryhub.hashnode.dev·Aug 19, 2024Understanding Javascript var, let and constUpon the release of ES2015 (ES6), two new ways of variable declaration were introduced to javascript. The two new keywords introduced were, let and const. Earlier the var keyword was only used to declared variables. In this article we dive deeper and...javascript hoisting
Bhavesh Jadhavbhaveshjadhav.hashnode.dev·May 27, 2024JavaScript Essentials: Understanding Scope, Lexical Environment, and HoistingUnveiling JavaScript Scope, Lexical Environment, and Hoisting: Demystifying Key Concepts Scope: Where Variables and Functions Live Scope determines where you can access a specific variable or function in your code. It is directly dependent on the lex...10 likesJavascript BasicsJavaScript
Nicole C.thepronicole.hashnode.dev·Sep 17, 2023The Scoop on Scopes JavaScriptOkay 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...7 likesJavaScript
Anirudha Patilatomicjuggernaut.hashnode.dev·Apr 12, 2023JavaScript Interview Question: Function Scope vs. Block ScopeJavaScript, like any other programming language, has a concept of scope that dictates the lifetime or availability of a variable or function. In this article, we will explore the difference between function scope and block scope, hoisting in JavaScri...block scope