MHMaaz Hafeezinmaazzz.hashnode.dev·Sep 4 · 9 min readJavaScript Spread vs Rest Operators: ... Explained SimplyJavaScript has a syntax that looks deceptively simple: ... You may have seen it used with arrays, objects, function parameters, or destructuring. But here's the confusing part: The same ... syntax ca00
MHMaaz Hafeezinmaazzz.hashnode.dev·Sep 3 · 9 min readError Handling in JavaScript: Try, Catch, Finally ExplainedYour JavaScript code can be perfectly valid and still fail while running. For example: const user = null; console.log(user.name); The code is syntactically valid, but JavaScript throws a runtime err00
MHMaaz Hafeezinmaazzz.hashnode.dev·Sep 2 · 10 min readJavaScript Promises Explained: From Callbacks to Async/AwaitJavaScript often needs to wait for things that don't finish immediately. Fetching data from an API, waiting for a timer, reading a file, or saving information somewhere can all take time. But JavaScri00
MHMaaz Hafeezinmaazzz.hashnode.dev·Sep 1 · 7 min readUnderstanding Objects in JavaScript: Properties, Values, and How to Work With ObjectsIf you've written JavaScript, you've already worked with objects. Users, products, students, orders, API responses, application settings, and even parts of your UI state are commonly represented as ob00
MHMaaz Hafeezinmaazzz.hashnode.dev·Aug 31 · 9 min readJavaScript Synchronous vs Asynchronous Code: How JavaScript Handles WaitingImagine your JavaScript program needs to fetch data from an API. The request might take a few milliseconds—or a few seconds. Does JavaScript stop everything and wait for the response? Not necessarily.00