Skip to content

Instantly share code, notes, and snippets.

@Maccauhuru
Created January 16, 2019 10:14
Show Gist options
  • Save Maccauhuru/a5900d9981da49a21614bb05c2f6556a to your computer and use it in GitHub Desktop.
Save Maccauhuru/a5900d9981da49a21614bb05c2f6556a to your computer and use it in GitHub Desktop.
Example of Arrow Function 2
//Arrow function that takes any number as input
//adds 100 and returns the total
const addHundred = num => num + 100;
addHundred(1);//output : 101
addHundred(1000); //output : 1100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment