| Example of Arrow function with syntax and code?
When we say about the Arrow functions, these provide a concise syntax for writing function which is mainly used for one-liner functions. Below is the code for Arrow function and file name is arrowFunction.js.
And to run above file we will use below command in node command prompt.
node arrowFunction.js
and output of above code is given below.
| | |