How JS Works
Learn how the JavaScript engine executes code.
How JavaScript Works
JavaScript is an interpreted language.
This means that the code is executed line by line.
Web browsers have a built-in JavaScript engine (like V8 in Chrome, SpiderMonkey in Firefox) that reads and executes the code.
Execution Context
When the JavaScript engine runs your code, it creates an execution context.