What is ECMAScript 6 or ES6?


ECMAScript 6 (ES6) is the specification or standard followed by many programming languages like JavaScript, JScript, ActionScript, etc. The most popular programmimg language following this specification is JavaScript, That is why many people call ECMAScript 6 JavaScript 6

New features introduced in ECMAScript 6:

The let statement allows you to declare a variable with block scope

The const statement allows you to declare a constant

ES6 allows function parameters to have default values:

Introduces a row of new methods like:

Array.find()
Array.findIndex()
Number.isInteger()
Number.isSafeInteger()

Introduces a row of new properties like:

EPSILON
MIN_SAFE_INTEGER
MAX_SAFE_INTEGER

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">