MAmd arbaz alaminarbaz.hashnode.dev·Feb 12, 2024 · 2 min readWhat is callback ?In JavaScript, a callback is a function that is passed as an argument to another function and is intended to be executed after the completion of a specific task or at a particular event. Callbacks are commonly used in asynchronous programming, event ...00
MAmd arbaz alaminarbaz.hashnode.dev·Feb 12, 2024 · 2 min readWeb Browser APIWeb API is a kind of power that allow developers to interact with various browser features, manipulate the Document Object Model (DOM), and perform tasks related to user interface, networking, storage, and more. DOM API (Document Object Model): The D...00
MAmd arbaz alaminarbaz.hashnode.dev·Feb 12, 2024 · 2 min readEvent LoopThe event loop is core to the performance of Node.js, helping it to perform asynchronous and non-blocking operations The event loop constantly checks if the call stack is empty. If the call stack is empty, it looks into the Callback Queue for pendin...00
MAmd arbaz alaminarbaz.hashnode.dev·Feb 12, 2024 · 2 min readWhat exactly is Call Stack in JavaScript?So basically, Call stack is a mechanism used in JavaScript to keep the track of multiple function call. Call Stack uses STACK which means Last In First Out which means the element last inserted into the stack will be removed or pop out first. functio...00
MAmd arbaz alaminarbaz.hashnode.dev·Feb 12, 2024 · 2 min readMake JavaScript code AsynchronousJavaScript is a "single-threaded" language because it has a single execution thread in the browser environment. This means that JavaScript code is processed in a sequential, single-threaded manner by default. let's look into the code let a = 10; for ...00