In this lecture and in next few lecture, we are going to learn about how JavaScript programs are executed behind the scenes. This is a very important concept to learn about and every modern JavaScript developer should be aware of how JavaScript works behind the scenes.
Let’s start by understanding what JavaScript runtime is. Remember that, what we are going to learn now is very important concept. I will use this concept to explain many other JavaScript related topics.
A JavaScript runtime is an environment which provides all the necessary components in order to use and run a JavaScript program. These runtime environments can be a slightly different when we use JavaScript in browser and when we use it as a server-side language using NODE JS. However, the basic structure of a runtime environment remains same.
What is JavaScript Runtime consist of?
A JavaScript runtime in case of browser, consist of following components which forms a complete runtime environment:
• JavaScript engine
• Web API
• Callback Queue
• Microtask Queue.
Let’s talk about each of these components one by one in this lecture.
On this page of the site you can watch the video online JavaScript Runtime Environment with a duration of hours minute second in good quality, which was uploaded by the user procademy 22 May 2021, share the link with friends and acquaintances, this video has already been watched 34,015 times on youtube and it was liked by 805 viewers. Enjoy your viewing!