NRNavdeep Rohillainjavascript-journey-by-navdeep.hashnode.dev·May 10 · 3 min readAsync Code in NodeJS1. Why async code exists in Node.js Imagine you ask Node.js to read a file from your disk. That file could be small — or it could be 200MB. Either way, reading it takes time. And while Node.js is wait00
NRNavdeep Rohillainjavascript-journey-by-navdeep.hashnode.dev·May 10 · 6 min readThe new keyword in JSIntroduction When you first learn JavaScript, objects feel easy, right? But behind the scenes, one tiny keyword I mean new performs a powerful multi step process. In JavaScript, the new keyword is the00
NRNavdeep Rohillainjavascript-journey-by-navdeep.hashnode.dev·May 10 · 8 min readThe this keyword in JSThere’s a moment almost every JavaScript developer goes through at least once. You write a perfectly normal function, call it inside an object, and everything works exactly the way you expect. Then a 00
NRNavdeep Rohillainjavascript-journey-by-navdeep.hashnode.dev·May 10 · 9 min readArray Flatten in JSIntroduction In JavaScript, Array Flattening is the process of taking a nested array (an array that contains other arrays) and "unwrapping" those inner arrays into a single, flat list of elements. Thi00
NRNavdeep Rohillainjavascript-journey-by-navdeep.hashnode.dev·May 10 · 5 min readString Polyphils and common Interview MethodsIntroduction In modern web development, strings are everywhere. Example usernames, search inputs, messages, product names, URLs, and more. Almost every application you build involves processing, trans00