An example that demonstrates Arrow Functions & its various uses-
Usage-
-
git clone https://github.com/bozzmob/Arrow-Functions-Example.git
-
Open index.html in your browser.
Arrow functions-
- Empty Arrow Function
It returns undefined
var empty = () => {}; - Arrow Function which returns value
returns the string
(() => "Voting Eligibility")(); ToDo-
- Add more Details and Examples
Thanks to Mozilla's MDN Webpage on Arrow Functions.