pushpesh-js-articles.hashnode.devUsing the Fetch API with async / await in JavaScriptThe async / await syntax is a cleaner way to work with Promises.It does not replace Promises—it makes them easier to read and reason about. Important:fetch() is still promise-based.async / await just lets you write asynchronous code that looks synch...Dec 26, 2025·4 min read
pushpesh-js-articles.hashnode.devUsing the Fetch API with Promises in JavaScriptModern JavaScript applications constantly talk to servers—fetching data, sending form submissions, or updating resources. The Fetch API is the standard way to perform HTTP requests in the browser, and it is promise-based by design. This article expla...Dec 26, 2025·4 min read
pushpesh-js-articles.hashnode.devEvent Listeners on the window Object in JavaScriptIn frontend development, many important events don’t happen on buttons or inputs—they happen at the browser level. Things like resizing the window, scrolling the page, switching tabs, or going offline are all window-level events. To respond to these,...Dec 26, 2025·4 min read
pushpesh-js-articles.hashnode.devsetTimeout and setIntervalconsole.log("Start"); // setTimeout runs a function once after a specified delay (in milliseconds). // setTimeout(callback, delay, arg1, arg2, ...); // callback → function to execute // delay → time in milliseconds before execution // arg1, arg2... ...Dec 26, 2025·1 min read
pushpesh-js-articles.hashnode.devJavaScript Date & Epoch: Complete GuideDates and times are tricky in frontend and backend apps. Understanding epoch, Date objects, instance methods, and static methods is essential for correct time computation, formatting, and transport. 1️⃣ Epoch Time Epoch time is the number of seconds...Dec 26, 2025·4 min read