ES6 refers to version 6 of the ECMA script programming language. … is a major extension of the JavaScript language, and adds many more features aimed at simplifying large-scale software development. ECMAScript, or ES6, was published in June 2015. It was later renamed ECMAScript 2015.
Variable:
1. Here are 3 ways to declare a JavaScript variable:
- Var
- Let
- Const
A variable is a container for storing data
Below is how to declare a variable:
Example:
- var: var keyword is a global scope variable declared.

