234 LK 3 y 53 Het 23 LK 428 G 3 Oh 8759
234 LK 3 y 53 Het 23 LK 428 G 3 Oh 8759
234 LK 3 y 53 Het 23 LK 428 G 3 Oh 8759
Skip to search
Skip to select language
MDN Plus now available in your country! Support MDN and make it your own. Learn
more ✨
References
Guides
MDN Plus
Search MDN
SEARCH
Theme
Log in
Get MDN Plus
References
JavaScript
English (US)
In this article
Tutorials
Reference
JavaScript
Tutorials
Complete beginners
JavaScript Guide
Intermediate
Advanced
References
Built-in objects
Expressions & operators
Statements & declarations
Functions
Classes
Errors
Misc
JavaScript
JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming
language with 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 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.
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 APIs
that are specific to Web pages, please see Web APIs and 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 language — JavaScript 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:
We have put together a course that includes all the essential information you need
to work towards your goal.
Get started
Tutorials
Learn how to program in JavaScript with guides and tutorials.
Asynchronous JavaScript
Discusses asynchronous JavaScript, why it is important, and how it can be used to
effectively handle potential blocking operations such as fetching resources from a
server.
JavaScript guide
JavaScript Guide
A much more detailed guide to the JavaScript language, aimed at those with previous
programming experience either in JavaScript or another language.
Intermediate
Understanding client-side JavaScript frameworks
JavaScript frameworks are an essential part of modern front-end web development,
providing developers with proven tools for building scalable, interactive web
applications. This module gives you some fundamental background knowledge about how
client-side frameworks work and how they fit into your toolset, before moving on to
a series of tutorials covering some of today's most popular ones.
Closures
A closure is the combination of a function and the lexical environment within which
that function was declared.
Advanced
Inheritance and the prototype chain
Explanation of the widely misunderstood and underestimated prototype-based
inheritance.
Memory Management
Memory life cycle and garbage collection in JavaScript.
Reference
Browse the complete JavaScript reference documentation.
Standard objects
Get to know standard built-in objects Array, Boolean, Date, Error, Function, JSON,
Math, Number, Object, RegExp, String, Map, Set, WeakMap, WeakSet, and others.
Classes
JavaScript classes are the most appropriate way to do object-oriented programming.
MDN on Twitter
MDN on GitHub
MDN
About
Hacks Blog
Careers
Advertise with us
Support
Product help
Report an issue
Our communities
MDN Community
MDN Forum
MDN Chat
Developers
Web Technologies
Learn Web Development
MDN Plus
Website Privacy Notice
Cookies
Legal
Community Participation Guidelines
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2023 by individual mozilla.org contributors.
Content available under a Creative Commons license.