Understanding Asynchronous JavaScript - the Event Loop

added by JavaScript Kicks
11/14/2018 8:48:36 AM

766 Views

Before we dive into asynchronous JavaScript, let's first understand how the synchronous JavaScript code executes inside the JavaScript engine. For example: const second = () => { console.log('Hello there!');} const first = () => { console.log('Hi there!'); second(); console.log('The End');} first(); To understand how the above code executes inside the JavaScript engine, we have to understand the concept of the execution context and the call stack (also known as execution stack).


0 comments