Created
December 9, 2013 22:28
-
-
Save nola/7882141 to your computer and use it in GitHub Desktop.
stores the function in the variable "square"
so you call square()
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
| var square = function(number) {return number * number}; | |
| var x = square(4) //x gets the value 16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment