Created
September 2, 2013 15:39
-
-
Save ivandotv/6414216 to your computer and use it in GitHub Desktop.
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
// 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