MSManpreet Singhinmanpreet006.hashnode.dev·Mar 26 · 3 min readThe 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 construct00
MSManpreet Singhinmanpreet006.hashnode.dev·Mar 26 · 3 min readCallback 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 allo00
MSManpreet Singhinmanpreet006.hashnode.dev·Mar 21 · 2 min readTemplate 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 Conc00
MSManpreet Singhinmanpreet006.hashnode.dev·Mar 19 · 4 min readUnderstanding 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 00
MSManpreet Singhinmanpreet006.hashnode.dev·Mar 19 · 3 min readUnderstanding 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. S00