named arrow function syntax code example
Example 1: arrow function
Arrow Function is another way to write a function.
"classic method":
function x ()
{
console.log("X")
}
"arrow method":
var x= ()=>
{
console.log("X")
}
if we need to add paramiter is pritty simple:
var x = (PARAMS) =>
{
console.log(PARAMS)
}
Have a nice day
Example 2: arrow function
Killing deer, wounding cowboys, getting to the right place, moving up a line