JRJohn Richardinpromise-in-js.hashnode.dev·Dec 2, 2025 · 3 min readPromisesPromise is an object representing the eventual completion of an asynchronous operation. It has three state Pending, Resolved and Rejected Pending is the default state Resolved when the promise is success Rejected when the promise fails Its respo...00
JRJohn Richardinevent-loop-in-js.hashnode.dev·Dec 2, 2025 · 2 min readEvent LoopEvent loop is a component in JavaScript engine which plays an important role in the asynchronous characteristic of JS. It frequently checks on the callstack of the JS engine to make sure it is empty or not. Event loop takes care of two functions on...00
JRJohn Richardinasynchronus-vs-synchronous-function.hashnode.dev·Dec 2, 2025 · 1 min readAsynchronous vs Synchronous functionSynchronous tasks complete in order one after the other and it will wait until the previous tasks gets completed and then moves to the next task. Asynchronous code does not wait for the previous one to complete it will run independently without wait...00
JRJohn Richardincallback.hashnode.dev·Dec 2, 2025 · 1 min readCallbackCallback is a function in which another function is passed as an argument and it is called after certain work is completed in the parent function. Since JavaScript is a single threaded language this callback enables the JavaScript to be asynchronous....00