docs.rodeo

MDN Web Docs mirror

JavaScript

{{jsSidebar}} 

JavaScript (JS) is a lightweight interpreted (or {{Glossary("Just_In_Time_Compilation", "just-in-time compiled")}} ) programming language with {{Glossary("First-class Function", "first-class functions")}} . While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as {{Glossary("Node.js")}} , Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, single-threaded, dynamic language, supporting object-oriented, imperative, and declarative (e.g., functional programming) styles.

JavaScript’s dynamic capabilities include runtime object construction, variable parameter lists, function variables, dynamic script creation (via eval), object introspection (via for...in and Object utilities), and source-code recovery (JavaScript functions store their source text and can be retrieved through toString()).

This section is dedicated to the JavaScript language itself, and not the parts that are specific to Web pages or other host environments. For information about {{Glossary("API", "APIs")}}  that are specific to Web pages, please see Web APIs and {{Glossary("DOM")}} .

The standards for JavaScript are the ECMAScript Language Specification (ECMA-262) and the ECMAScript Internationalization API specification (ECMA-402). As soon as one browser implements a feature, we try to document it. This means that cases where some proposals for new ECMAScript features have already been implemented in browsers, documentation and examples in MDN articles may use some of those new features. Most of the time, this happens between the stages 3 and 4, and is usually before the spec is officially published.

Do not confuse JavaScript with the Java programming languageJavaScript is not “Interpreted Java”. Both “Java” and “JavaScript” are trademarks or registered trademarks of Oracle in the U.S. and other countries. However, the two programming languages have very different syntax, semantics, and use.

JavaScript documentation of core language features (pure ECMAScript, for the most part) includes the following:

For more information about JavaScript specifications and related technologies, see JavaScript technologies overview.

Beginner’s tutorials

Learn how to program in JavaScript from the ground up with our beginner’s tutorials.

JavaScript guides

Fundamental language guides

Intermediate

Advanced

Reference

Browse the complete JavaScript reference documentation.

In this article

View on MDN