#frontpro #javascript #advancefeaturesofjavascript #advancejavascript
#howjavascriptworks
#executioncontext #javascriptglobalobject
Angular Change Detection | Most asked interview question | Know how exactly it works - Live Demo
• How do Angular changes detection work...
Blog - http://blog.daisentech.com/
Learn Next
• JavaScript Hoisting | Variable Object...
More technical videos
Website Hacking - What is Cross Site Scripting (XSS)? | Live demo | XSS example
• What is Cross Site Scripting (XSS)? |...
Why you should learn socket programming? Technology used : Node.js, Angular 8
• 1. Why you should learn socket progra...
JavaScript is always hosted in some environments most typically a browser such as Google Chrome, Firefox, Safari, etc. This is where JavaScript runs. There can also be other hosts such as the Node JS web server, or even some applications that accept JavaScript code input.
When we write our JavaScript code and actually want to run it there's a lot of stuff happening behind the scenes.
So what happens is that the host where JavaScript is hosted. It used to have some kind of JavaScript engine that takes our code and executes it. In simple terms, a JavaScript engine is a program that executes JavaScript code.
There are many different engines out there like Google's V8 engine (used in Google Chrome) but there are others too like SpiderMonkey, JavaScript core, and many more.
The first thing that happens inside the engine is that our code is parsed by a parser. Which basically reads our code line by line and checks if the syntax of the code that we have written is correct. So this means that the parser knows the JavaScript rules and how it has to be written in order to be correct and to be valid.
How does JavaScript work behind the scenes?
What is execution context?
v8 engine javascript
execution stack javascript
Understanding Execution Context and Execution Stack in Javascript