SRSaurabh Ravteinsaurabh-ravte.hashnode.dev00Synchronous vs Asynchronous JavaScriptMar 28 · 5 min read · The real-world analogy first Imagine you walk into a coffee shop. There are two ways the counter could work. In the first version, you order, and you stand there frozen the barista makes your coffee, Join discussion
SRSaurabh Ravteinsaurabh-ravte.hashnode.dev00Callbacks in JavaScript: Why They ExistMar 28 · 6 min read · Before callbacks make any sense, you need to sit with one idea for a moment: in JavaScript, a function is just a value exactly like a number or a string. You can store it in a variable, put it inside Join discussion
SRSaurabh Ravteinsaurabh-ravte.hashnode.dev00Map and Set in JavaScriptMar 28 · 4 min read · What is a Map? A Map is a collection of key-value pairs just like a real-world dictionary or phonebook. What makes it special is that the keys can be anything: strings, numbers, objects, even functionJoin discussion
SRSaurabh Ravteinsaurabh-ravte.hashnode.dev00Array Flatten in JavaScriptMar 28 · 4 min read · What are nested arrays? Imagine a box inside a box inside another box. That's what a nested array is an array that contains other arrays as its elements. const nested = [1, [2, 3, 4], [5, [6, 7, 8]]];Join discussion
SRSaurabh Ravteinsaurabh-ravte.hashnode.dev00Template Literals in JavaScriptMar 27 · 3 min read · Traditional String Concatenation is a Mess Before ES6 (2015), the only way to combine strings and variables in JavaScript was using the + operator. It worked but it was painful to read and write, espeJoin discussion