pulpmint.hashnode.devClosures: Subtle Yet PowerfulJavaScript has evolved over the years by introducing a lot of new features & taking a lot of notes from other languages as well. It contains so many small concepts that developers use everyday without even noticing. Closures are one of those concepts...May 2, 2022·5 min read
pulpmint.hashnode.devLet vs Var vs Const: Temporal Dead Zone, Scopes, Shadowing & MoreWith the introduction of ES6, a lot of new features have been added in JavaScript. One of them is the addition of let & const along with the good old var keyword for variable declaration. Many times, we use these keywords without considering what hap...Mar 21, 2022·7 min read
pulpmint.hashnode.devLexical Scope & Scope Chain: Dibs on Variables & FunctionsWe all know about variables & functions & their different types, but we all must have been a part of long debugging sessions trying to solve Uncaught ReferenceErrors at some point of our life. This is because, different parts of our program call dibs...Mar 7, 2022·5 min read
pulpmint.hashnode.devHoisting: More Than "Moving Variables To The Top"Hoisting is a very popular concept in JavaScript & it is asked in many interviews. Mostly people answer the question "What is hoisting" by saying "Hoisting is when JavaScript moves the variable declarations to the top of the scope", which is correct,...Mar 1, 2022·4 min read
pulpmint.hashnode.devUndefined vs Not Defined vs Null: JavaScript is WeirdJavaScript is a weird language when it comes to declarations & definitions. For a new developer, the difference between undefined, not defined & null can be confusing. So let's dive in. Before that, consider reading the article on Execution Context &...Feb 21, 2022·4 min read