What is ES6 in JavaScript


JavaScript (JS) is a lightweight, interpreted or JIT-translated language with first-class functionality. It is mainly known as a scripting language for websites, but it is also used in many non-browser environments such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based language that follows multiple paradigms, is dynamic, and enables both object-oriented, imperative and declarative programming (e.g. functional programming). More information about JavaScript.

This area is used to describe the JavaScript language itself, i.e. general content that does not only apply specifically to websites or other environments. For more information on specific APIs for websites, see the pages for Web APIs and DOM.

The standard for JavaScript is ECMAScript. As of 2012, all modern browsers fully support ECMAScript 5.1. Older browsers support at least ECMAScript 3. On June 17th, 2015, ECMA International published the sixth version of ECMAScript, which is officially called ECMAScript 2015 and was initially referenced with ECMAScript 6 or ES6. Since then there has been a new version of the ECMAScript standards every year. This documentation references the last draft version, which is currently ECMAScript 2019.

Don't confuse JavaScript with the Java programming language. Both "Java" and "JavaScript" are trademarks and / or registered trademarks of Oracle in the United States and other countries. The two programming languages ​​have very different syntax, semantics and usage.

Learn how to program with JavaScript with guides and tutorials.

For complete beginners

If you are new to JavaScript or programming, visit our learning area on JavaScript topics. The following modules are available there:

Getting started with JavaScript
Answers some fundamental questions like "What is JavaScript?", "What does it look like?" and "What can it do?" and discusses key JavaScript functions such as variables, strings, numbers and arrays.
JavaScript building blocks
Expands the knowledge of JavaScript's fundamental key functions and draws attention to frequently used types of code blocks, such as conditional statements, loops, functions and events.
Introduction to JavaScript objects
Understanding the object-oriented nature of JavaScript is important if you are to continue learning the language and write more efficient code. So this module is here to help you with that.

JavaScript Guide

JavaScript Guide
A much more detailed guide to the JavaScript language, intended for people who have programming experience with JavaScript or other languages.


Client-side web APIs (en-US)
When writing client-side JavaScript for websites or applications, you won't get very far without the use of APIs - interfaces for manipulating various aspects of the browser and operating system on which the page is running, or simply data for other websites or services. This module gives an overview of the APIs and shows how the most commonly used APIs are often used in development work.
A reintroduction to JavaScript
An overview for those who meanthat they already know JavaScript.
JavaScript data structures
Overview of existing data structures in JavaScript.
Compare for equality and how to use it
JavaScript provides three different comparison operators: strict equality with, loose equality with, and the method.


Inheritance and the prototype chain
Explanation of the often misunderstood and underestimated prototype-based inheritance.
Strict mode
The strict mode defines that no variable can be used before initialization. It is a restricted variant of ECMAScript 5 for better performance and easier debugging.
JavaScript's typed arrays
JavaScript-typed arrays make it possible to access binary raw data.
Memory management
Memory Cycles and Garbage Collection in JavaScript.
Parallelism model and event loop
JavaScript has a parallelism model based on an event loop.


Consult the full JavaScript reference documentation.

Standard objects
Built-in objects of the standard library such as,,,,,,,,,,,,,, and others.
Expressions & Operators
Learn more about the meaning of JavaScript operators,,,, the order of operations, and more.
Statements & declarations
Learn how,,,,,,,, and other JavaScript statements and keywords work.
Learn how to work out functions with JavaScripts in order to develop an application.

Tools & aids

Helpful tools for writing and debugging JavaScript code.

Firefox Developer Tools
Scratchpad, Web Console, JavaScript Profiler, Debugger and more.
JavaScript shells
With a JavaScript shell it is possible to try out code snippets quickly and easily.

Collaboration made easy. With TogetherJS added to a page, the page users can help each other in real time!

Stack overflow
Stack Overflow questions marked with "JavaScript".
JavaScript versions and release notes
History and status of the implementation of JavaScript functions.
Edit JavaScript, CSS and HTML and see live results. You can also use external resources and work with your team online.
Plunker is an online community for creating, collaborating and sharing ideas in web development. You can edit JavaScript CSS and HTML files and see live results and file structures.