Javascript - (Interpreter|Engine|Runtime)

1 - About

Javascript Interpreter (JavaScript engine) is a software which interprets and executes JavaScript code.

Javascript can run in two different environment:

If the javascript script has no dependencies to the DOM, it can be run in a non-browser JavaScript environment.

The JavaScript engine actually compiles the program on the fly and then immediately runs the compiled code.

3 - Type

3.1 - Browser

Although there are several uses for a JavaScript engine, it is most commonly used in web browsers. The developer tools of the browsers have a javascript interpreter that you find mostly in the console

3.2 - Non-Browser



3.3 - ??

  • SpiderMonkey
  • Chakra

4 - Management

4.1 - Get

if (typeof document !== 'undefined') {
  // We are in a browser context
} else {
  // We are in a non-browser context (node,..)

where: Browser - Document variable (DOM) - Javascript

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap