TPTejas Prajapatiintejasxdev.hashnode.dev·Apr 27 · 3 min readDestructuring in JavaScriptYou’ve definitely written code like this: const user = { name: "Tejas", age: 20, role: "SDE" }; console.log(user.name); console.log(user.age); console.log(user.role); At this point you're not 00
TPTejas Prajapatiintejasxdev.hashnode.dev·Mar 24 · 3 min readArray Flatten in JavaScriptWhat nested arrays are Nested means nested. Arrays means arrays, so nested arrays means nested arrays, as simple as that. Here is an nested array. [1, 2, [3, 4], 5, [6, [7, 8], 9]] This is a differen00
TPTejas Prajapatiintejasxdev.hashnode.dev·Mar 15 · 4 min readUnderstanding Object-Oriented Programming in JSWhen people hear Object-Oriented Programming (OOP) for the first time, it sounds like some big scary computer science concept. But in reality it's just a way to organize code so that it becomes easier00
TPTejas Prajapatiintejasxdev.hashnode.dev·Mar 15 · 4 min readThe Magic of this, call(), apply(), and bind() in JavaScriptIn JavaScript, there is one keyword which confuses beginners more than recursion, pointers and sometimes even their own life decisions. That keyword is this. You’ll see it everywhere in JS code, but a00
TPTejas Prajapatiintejasxdev.hashnode.dev·Mar 15 · 4 min readArrow Functions in JavaScript: A Simpler Way to Write FunctionsFunctions in JS are great, they make code reusable so you don't have to write the same logic again and again. But sometimes writing normal functions feels a bit too verbose like ex. Like you write fun00