Functions with default parameter values
Default parameters can be used in JavaScript and JavaScript supports it. If no value is given or is undefined then :
Overwrite function value :
Anonymous Function
These functions can accept inputs and return outputs, just as standard functions do.
The Spread Operator
It basically adds the value of an array or object to another array or object through (…)
Arrow Function
It is an alternative function to normal function and relatively simple. However, it cannot be used all the time.