Stanley Owarietaday3-of-30days-js-blog.hashnode.dev·Oct 28, 2024Mastering JavaScript Scope: Understanding Context in Your CodeIn JavaScript, scope determines the accessibility of variables and functions at different parts of your code. Mastering scope is essential for writing clean, bug-free JavaScript code and ensuring variables and functions behave as expected. Let’s dive...Discuss·10 likesJavaScript
Borhan Uddincodernex.hashnode.dev·Sep 26, 2024Mastering JavaScript Closures: A Comprehensive GuideIntroduction: Closures are a fundamental concept in JavaScript that allows functions to access variables from their outer scope, even after the outer function has returned. This ability gives JavaScript its unique approach to state management and fun...Discussclosures in javascript
Megha Bathlameghabathla.hashnode.dev·Aug 24, 2024Understanding the Difference Between Declaring Arrow Functions with const, let, and var in JavaScriptIn JavaScript, there are three primary ways to declare variables or functions: const, let, and var. Although all three can be used to declare arrow functions, each has its own behaviors and implications. Understanding these differences can help you a...Discuss·10 likes#arrowfunction
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...Discussjavascript hoisting
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); } ...Discuss·1 likeIllegal shadowing
Suraj Chaturvedimernsuraj.hashnode.dev·Mar 15, 2024Unlocking JavaScript's Variable Mysteries: Global vs Local, Block Scope, and Beyond!🚀 Welcome to the JavaScript with Node.js Journey! Today, let's dive into an exciting topic: Global vs Local Variables, Block Scope, and Differences Between let, const, and var! 💡 Global vs Local Variables:🌎 Global Variables: They're like superst...DiscussJavaScript
Jieun Leezeunny.hashnode.dev·Mar 12, 2024JavaScript: 어떤 방식으로 함수 정의하는 것을 선호하세요? - (1)들어가며 인터뷰에서 "어떤 방식으로 함수 정의하는 것을 선호하세요?" 라는 질문을 받은 적이 있다. 그 당시에는 JS에 관한 공부가 부족했기에 정의 방식에 따라 어떤 차이가 있는지 확실하게 알지 못했다. 고로 대답은 했지만 그에 대한 근거가 부족했다. JS를 공부하고 나서 이 질문의 큰 그림을 알게 되었다. 함수 정의 방식에 따라 스코프, 호이스팅, this 등 JS의 다른 개념들이 숨어있었고 그 개념들까지 제대로 알고 있느냐를 판단하기 위한 ...Discuss·58 readsJavaScript
Vijaya Shreevijayashree.hashnode.dev·Mar 11, 2024Scope Chain & Lexical EnvironmentScope : Scope is one of the most important JavaScript concepts. It helps us to understand other concepts such as closures and lexical environment. There are two types of scopes : Global scope Local scope (Block and function scope) Global scope : ...Discusslexical scope
Sanjanasancodes.hashnode.dev·Feb 15, 2024JavaScript Essentials: Breaking Down Closures and Asynchronous Programming for BeginnersHello there, fellow coding enthusiasts! Welcome to our exploration of JavaScript! In this journey, we'll be delving into two crucial concepts: closures and asynchronous programming. Are you excited to learn about how JavaScript works behind the scene...Discuss·1 like·77 readsJavaScript
Akash Thoriyaakashthoriya.hashnode.dev·Jan 19, 2024Scope (Global, Local, Block)Expert-Level Explanation Scope in JavaScript refers to the visibility of variables. Global Scope: Variables declared globally (outside of any function or block). These are accessible from anywhere in the code. Local (function) scope: variables decl...DiscussJavaScript Fundamentals for InterviewsJavaScript