ECMAScript-2015 & ES-6

ECMAScript-2015 & ES-6

ECMAScript 2015 was the newer version of JavaScript that was introduced in 2015. it is also known as ES6 In These Versions JavaScript Introduced lots of newly and and most important future like

✅ Let and Const

✅ Template String

✅ Default Argument

✅ Arrow Function

✅ Rest Operator

✅ Spread Operator

✅ Array Destructuring

1️⃣ Let And Const

let and const ware introduced in ES6 and both was the block and functional scoped variable. let was the preferred way over using var. which can be reassigned and can’t be redeclared but const can’t be reassigned nor redeclared.

2️⃣ Template String

Template string allows multiple variable in a string its also known as template literals.

3️⃣ Default Argument

Default arguments means a value provided in a function declaration that is automatically assigned by the compiler if the called function

4️⃣ Arrow Function

Arrow function allow us fat arrow => operator to quick define function with or without arguments. it is also introduced in ES6

5️⃣ Rest Operator

Rest Operator ( ... ) allows us to quickly take the rest parameter in a function and converted parameter into array it is also introduced in ES6. it

6️⃣ Spread Operator

Spread Operator ( ... ) allows us to quickly copy all or part of an existing array or object into another array or object. it is also introduced in ES6.

### 7️⃣ Array Destructuring Array destructuring assignment syntax is a JavaScript expression that makes it possible to unpack elements from arrays and objects.

Did you find this article valuable?

Support Ravi Kumar by becoming a sponsor. Any amount is appreciated!