JavaScript - Array methods cheat sheetNo bullsh%t, Only array methods for quick review NameDescriptionExample mapCreates a new array with the results of calling a provided function on every element.const numbers = [1, 2, 3]; const doubled = numbers.map(x => x * 2); // [2, 4, 6] f...1BMay 26, 2024 · 4 min readmariyazaveri.hashnode.dev
Making JS less scary with knowledge of Execution context, call stack and hoistingIntro JavaScript is hard. Don’t get me wrong, JS is the go-to language to become a full-stack developer in the least time and most miniature tech stack. In the long run though, without the knowledge of the inner workings of JavaSript, your codebase s...Nov 7, 2023 · 13 min readmariyazaveri.hashnode.dev
Understanding Lexical Scope and Closure in JavaScriptClosures were a rather daunting topic when I first got started with JavaScript. My hope for this article is for you to be able to appreciate the beauty of JavaScript functions and closures. The story of Lexical scope, scope chain and closures… Once u...Jul 28, 2023 · 10 min readmariyazaveri.hashnode.dev
JavaScript Scopes Unveiled: Unlocking the Secrets of Global, Local, and Block ScopesI find it easier to understand a technical term when I look it up in the dictionary before starting the topic. In this article, we’ll be following that approach. Scope noun the extent of the area or subject matter that something deals with or to wh...2UBJul 15, 2023 · 4 min readmariyazaveri.hashnode.dev
Mastering JavaScript Variables: Understanding the Difference between let, const, and varSince ES6, we got an addition of the let and const keywords. But why was there a need for them in the first place? And since everyone around you is suggesting that let is the new var, should we stop using var altogether? After understanding the diffe...1BJul 6, 2023 · 7 min readmariyazaveri.hashnode.dev