Javascript - (Interpreter|Engine|Runtime)


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.


Browser (UI)

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

Non-Browser (Cli) (Server / Desktop)



  • nashorn: Java Embedded Script Engine in the JDK. Nashorne Jjs (Javascript on JVM). See Idea debug
  • graaljs (by default on graal but may run on jdk 1)
  • J2v8 - set of Java bindings for Google’s popular JavaScript engine, V8.
  • Rhino - The Mozilla JavaScript Engine is named “Rhino”. Rhino is implemented in Java.



  • SpiderMonkey
  • Chakra

Javascript Compatibility

All engine does not necessarly implement all statement of javascript.

This project compat-table helps you better understand the statement supported by the javascript engine.



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

Discover More
Browser - Document variable (DOM) - Javascript

In a browser, the document is: a DOM document (in-memory tree) of a XML document (generally a HTML dom document) The document is provided by the browser via its DOM webapi (Not by the Javascript...
Chrome Cli

chrome in headless mode can be used as a CLI Size of a standard letterhead The --dump-dom flag prints document.body.innerHTML to stdout: The --print-to-pdf flag creates a PDF of the page: ...
Google V8 Javascript Interpreter (Chromium)

v8 is an open source javascript interpreter. In Chrome In Node or go to the Release
Javascript (Js|ECMAScript)

Javascript was born to run in the browser but may know with the advent of node run on the server side. See JavaScript is also known as: Mocha, LiveScript, JScript (Windows Implementation),...
Javascript Console Dir
Javascript - (Console) Logging

logging in javascript are functions of the console Console logging permits inspecting a Web application (page). window Level Shows All Shows all console output Errors Only show output from...
Javascript - Browser (Web API )

API The browser in Javascript. The browser implements extra javascript object to be able to interact with it, such as: The window object of represents a window containing a DOM document; the document...
Javascript - Module Loader (Script Loader)

A loader searches and loads module and script into the javascript engine (environment). From the main script, they will: create a dependency graph from the require and import statement find them...
Javascript - Nashorn Engine

Nashorn is the JDK’s built-in JavaScript engine. Rhino was its predecessor. Background: The development of Nashorn started in late 2010 to experiment with the invokedynamic (292JSR 292) byte-code instruction....
Javascript - Rhino Engine

Rhino is an javascript engine that implements JavaScript ECMA from the Mozilla Foundation (It was the first JDK offering for JavaScript). compatibility...
Javascript - Script

A Javascript script is script file with a js extension. A browser script is a run that is run by the browser where Javascript is: in a page via the script element: in a browser extension created...

Share this page:
Follow us:
Task Runner