So, Let’s get started:
i. The “let” keyword is used to declare something which may update later in the scope of function or loop or any conditional statement.
ii. The ‘const” keyword is used to declare some value which will not change in the scope. Both of these keywords are used in local scope, and known as local scope variable.
The “var” keyword is also used to declare a function, but it is global scoped, and hoisted by the program to the top.
2. Template Literals:
Templates are used to write some variable embedded as like string, and useful to declare some dynamic value within the template. It’s like the string method but better. Templates are written within the ``(back tick) signs found on the left of “1” key.
3. Arrow Functions:
4. Default Parameters:
In declaring regular funtions, we can assign some pre-made value for a parameter. If someone don’t pass the parameter when calling the function, the default parameter will be assigned, thus no error will occur.
5. Spread Operator:
We can use the elements of an array to another array, for doing that, no need to write down the elements of the array again. Instead, within the third bracet”” three dots”…” will be used, and then we can write the variable name in which the array is declared.