Author: Gulshan Ara Nawshin

Functions are an important part of programming. A normal function simply takes some input, does something using logic and returns us an output. Now this input – means argument passed in a function can be a function itself. This function which is passed into another function as an argument is known as Callback functions.But we know, Javascript has only one call stack and every function creates an executional context inside the call stack. When a callback function is invoked, it doesn’t create an executional context inside the call stack of the JS engine. Instead, it goes out of the call stack…

Read More