Created
October 14, 2017 18:53
-
-
Save Fouzyyyy/ed5382689618c398760106353dcef3eb to your computer and use it in GitHub Desktop.
Arrow function with a single return statement
This file contains hidden or 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
let multiplyByItself = number => number * number; | |
alert(multiplyByItself(2)); // 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment