What are callback functions and provide a simple example ?
Callback is just a function that is passed as an argument to another function. Also as known higher-order function. The callback should be invoked whenever the asynchronous task is finished. Callback functions are not asynchronous. The callback just allows you be informed when the asynchronous task has completed and handles the success or failure of the task.
In order to deal with asynchronous operations, we can use Callbacks to inform the user when the task has completed.
What is a Promise…
The basic idea of Object Oriented Programming is that we use objects to model real world things that we want to represent inside our programs and/or provide a simple way to access functionality that would otherwise be hard or impossible to make us of. Generally to make this easier, we use
In this article, we will dive into what Classes do behind the scene by comparing it to Prototype…
What execution context looks like ?
The execution context is created during…