Created
October 14, 2017 18:20
-
-
Save Fouzyyyy/707d79f783471e008c906cc13d0af771 to your computer and use it in GitHub Desktop.
Arrow function with one argument v1
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
// The simplest way | |
let multiplyByItself = (number) => { | |
return number * number; | |
}; | |
alert(multiplyByItself(2)); // 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment