- var variables can be re-declared and updated
- let can be updated but not re-declared
- const cannot be updated or re-declared
-
map(): => It is a built-in array method that makes a new array by applying a function to each element of an existing array. => It doesn’t change the original array.
-
forEach(): => It is another array method. => It executes a function for each element, but it does not return a new array.
-
filter(): => It is an array method in JS. => It picks only items that match a condition. => It gives back a new array.
- It is a shorter and cleaner technique to write functions in JavaScript.
- It is an easier way to unpack values from arrays into variables.
-
Template literals are a new way to create strings using backticks instead of quotation mark.
-> It uses backticks (``). -> It can insert variables or expressions directly by using ${}. -> It supports multi-line strings.