Last active
June 22, 2018 22:56
-
-
Save kennetpostigo/3015fa5d1d900cdba3116b15e21457d1 to your computer and use it in GitHub Desktop.
Reason BST Blog Post Function Usage
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
/*Single line function named square*/ | |
let square = x => x * x; | |
/* Multiline function named logNSquare */ | |
let logNSquare = x => { | |
let squared = x * x; | |
Js.log(squared); | |
squared; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment