Skip to content

Instantly share code, notes, and snippets.

@nola
Created December 9, 2013 22:28
Show Gist options
  • Select an option

  • Save nola/7882141 to your computer and use it in GitHub Desktop.

Select an option

Save nola/7882141 to your computer and use it in GitHub Desktop.
stores the function in the variable "square" so you call square()
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