Arrow function
It is used for writing JavaScript functions.
It is used to save the time and make simple use of function.
It is also called fat arrow function use of Arrow function is similar to lambda in JavaScript.
we avoid the use of function keyword, return and curly brackets by use of Arrow function.
Example To print Hello World.:-
let test;
test = () =>
{
return "Hello World!";
}
test();
To print values of variables.:-
let Test = (x,y,z) =>
{
console.log(x + " and " + y );
}
Test(100,200);