A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Arrow function

Template Literals

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);  


 

LEARN TUTORIALS

.

.