Something About ES6/Javascript Function

Hridoy
Nov 7, 2020

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 :

Functions with default parameter

Overwrite function value :

Overwrite function value

Anonymous Function

These functions can accept inputs and return outputs, just as standard functions do.

Anonymous Function

The Spread Operator

It basically adds the value of an array or object to another array or object through (…)

The Spread Operator

Arrow Function

It is an alternative function to normal function and relatively simple. However, it cannot be used all the time.

Arrow Function

--

--