Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 444 Bytes
# JavaScript
## Functions
function foo(){}
foo = function(){}
foo = function foo(){}
Function('a, b', 'print(a, b)')
new Function('a, b', 'print(a, b)')
(function(){})()
(function($){})(jQuery)
## Function.prototype.toString()
(function foo(){}).toString()
// => "function foo() { }"
## Function.prototype.length
(function foo(){}).length
// => 0
(function foo(foo, bar){}).length
// => 2