JavaScript Arrow Function

JavaScript Arrow Function


JavaScript Arrow Function
In this tutorial, you will learn about Arrow Function in JavaScript with the help of Example:
Arrow functions were introduced in ES6.
Arrow functions help us to write shorter function syntax is as follows:
Example 1 -
Output
 
Example 2 –
Output –
800