Skip to content

Instantly share code, notes, and snippets.

@ivandotv
Created September 2, 2013 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivandotv/6414216 to your computer and use it in GitHub Desktop.
Save ivandotv/6414216 to your computer and use it in GitHub Desktop.
// this is a function expression,
// pased as an argument to the function `callMe`
callMe(function () {
// I am an unnamed function expression
// also known as an anonymous function
});
Background | 59
// this is a named function expression
callMe(function me() {
// I am a named function expression
// and my name is "me"
});
// another function expression
var myobject = {
say: function () {
// I am a function expression
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment