Created
January 16, 2019 10:14
-
-
Save Maccauhuru/a5900d9981da49a21614bb05c2f6556a to your computer and use it in GitHub Desktop.
Example of Arrow Function 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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