The new Keyword and Constructor Functions in JavaScriptWhen learning JavaScript, we often create objects using object literals. However, when we need to create multiple objects with the same structure, JavaScript provides a better approach using constructMar 26 · 3 min readmanpreet006.hashnode.dev
Callback Functions in JavaScriptJavaScript treats functions as first-class values, which means a function can be stored in a variable, passed to another function, or returned from a function. Because of this feature, JavaScript alloMar 26 · 3 min readmanpreet006.hashnode.dev
Template Literals in JavaScriptWhen students start learning JavaScript, they usually combine strings using the + operator. This method works, but when the string becomes longer, the code becomes harder to read. Old Way: String ConcMar 21 · 2 min readmanpreet006.hashnode.dev
Understanding Nested Arrays and How to Flatten Them in JavaScriptIntroduction Arrays are one of the most commonly used data structures in JavaScript. Normally, an array stores multiple values in a single variable. However, sometimes an array can also contain other Mar 19 · 4 min readmanpreet006.hashnode.dev
Understanding JavaScript ModulesWhy Modules Are Needed When we start learning JavaScript, we usually write all our code inside one file. This works for small programs, but as the project grows the code becomes difficult to manage. SMar 19 · 3 min readmanpreet006.hashnode.dev