New features in ES6 every developer must know π
π JavaScript can be defined as a very powerful programming language and it is actually based on ECMA script. (ECMA is the foundation and javascript is on top of that)
π JavaScript ES6 is also called ECMAScript 6 or ECMAScript 2015 And this was introduced in 2015 as a new version of JavaScript.
In this article, Iβm going to discuss the below topics:
1. Scope
2. Constants
3. Arrow Function
4. Function and Arrow Function
5. Handling Objects
6. Freeze method
7. Template
8. Classes
9. Destructuring
10. JavaScript Callback Function and Promises
11. Async function / await
Letβs get to the coding π
This is the accessibility of variables in javascript So the scope controls the visibility of variables of your code. There are two types of scope:
βΈ Global variables β These are declared outside of a block. Variables that are declared inside the Global scope can be accessed anywhere in our code.
βΈ Local variables βThese are declared inside of a block. Variables that are declared inside the Local scope can be accessed only within that particular block.
#es6 #modern-javascript #javascript