KSKanishka Shashiinjavasblog.hashnode.dev·Mar 8 · 5 min readFunction Declaration vs Function Expression: What’s the Difference?Functions are one of the most important concepts in JavaScript. They allow us to write reusable blocks of code that perform specific tasks. Instead of writing the same code again and again, we can pla00
VKVishal Kumar Guptainvishudev.hashnode.dev·Mar 4 · 6 min read🤔 "Why Doesn't My Function Work?!" — Every JS Beginner's First Mistake (Declaration vs Expression Explained)What Even IS a Function? (No Jargon, Promise) Image you make really good Chai ☕ . Every morning you : Boil water Add tea leaves Add milk Add sugar Strain and serve You do 5 step every single da00
PPPayal Porwalincodeswithpayal.hashnode.dev·Jun 28, 2025 · 7 min read🧠 JavaScript Function Concepts: Closures, Rest Parameters, Default Parameters & Function HoistingIn modern JavaScript and especially while working with React, understanding how functions behave internally helps us write clean and bug-free code. In this article, we'll cover: Closures Rest Parameters Default Parameters Hoisting in Functions ...00
PPPayal Porwalincodeswithpayal.hashnode.dev·Jun 28, 2025 · 7 min read🧠 JavaScript Function Concepts: Function Declaration vs Function ExpressionIn JavaScript, functions are a key part of writing reusable, clean, and powerful code. But when we start learning functions, two common terms confuse many learners: Function Declaration Function Expression Let’s understand both in detail with sim...01A
KKodaKodamainkodakodama.hashnode.dev·Sep 5, 2024 · 4 min readEasy Guide to Hoisting in JavaScriptIntroduction JavaScript has some strange things that can confuse people, and hoisting is one of them. Hoisting means you can use variables and functions before you declare them in your code. But how does this work, and what should you watch out for? ...00
GGGaurav Goswamiingauravgoswami.hashnode.dev·Jul 22, 2024 · 8 min readHoistingWhen you're starting with JavaScript you'll surely bump into something known as hoisting. If you're a beginner, this could be a little tricky as well as confusing because this hoisting thing lets you access a variable even before declaring it and som...00
YGYugam Gangarinyugamgangar.hashnode.dev·Jul 8, 2024 · 5 min readHoisting & Temporal Dead Zone in JavaScriptWe all might have heard of "hoisting" while working in JavaScript. But not everyone knows in depth about it. In this post let's dive deep into it. var colour = "white"; console.log(colour); // white Here it's a simple block of code where the vari...00
ADAbhishek Dandriyalinabhishek-dandriyal.hashnode.dev·Apr 10, 2024 · 3 min readFunctions in JavascriptFunction Expression: A function expression in JavaScript is when you assign a function to a variable. It's an alternative way to define a function compared to the traditional function declaration. In your example: const square = function(num) { r...00
VSVikas singh varmainvikas369.hashnode.dev·Apr 6, 2024 · 1 min readWhat is Hoisting?Hoisting: Hoisting allows functions and variables(with var) to be used before they are declared. This behavior gives us a peek behind the scenes of how JavaScript works It's a javascript behavior where function and variable declaration (with Var) are...00
MSMurali Singhinmuralisingh.hashnode.dev·Apr 1, 2024 · 4 min readHoisting in JavaScriptHoisting is a special behavior of the JavaScript interpreter. Hoisting means that function and variable declarations are moved to the top of their containing scope. Variables Hoisting In JavaScript, variables are declared using let, const, and var. A...00