Skip to content

bozzmob/Arrow-Functions-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

An example that demonstrates Arrow Functions & its various uses-

Usage-

Arrow functions-

  1. Empty Arrow Function

It returns undefined

var empty = () => {}; 
  1. 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.

About

Trying to use arrow functions in all possible forms in a simple example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published