JavaScript Execution – III

To read the first part of this series click here. Until now, we have seen how JavaScript executes the code line-by-line. In this post, we will talk about how JavaScript engine works on a high level [the important parts]. Let’s start with the first and most important component of the JavaScript engine, i.e. call stack. The

Read More


Closure – II

Let us see another famous and good example for understanding the concept of closure. A prior knowledge of how callbacks and event loop work in JavaScript is required. setTimeout is not a native function in JavaScript. It is an API similar to XMLHttpRequest which enables us to extend JavaScript to asynchronous in nature. setTimeout is a

Read More