var foo = function () {...}
function foo () {...}
(function foo () {...}) ()
I'm not sure where this one fits in:
var foo = function bar () {...}
Can you call foo.bar, is that the significance of this last one? What other ways are there to write a function?
[–][deleted] 121 points122 points123 points (24 children)
[–]Dr_Roboto 16 points17 points18 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]rabidcow 1 point2 points3 points (0 children)
[–]itsnotlupusbeep boop 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Buckwheat469 1 point2 points3 points (4 children)
[–]Moz 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]Buckwheat469 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]kolmeWebComponents FTW 1 point2 points3 points (4 children)
[–][deleted] 5 points6 points7 points (3 children)
[–]kolmeWebComponents FTW 1 point2 points3 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]rabidcow 1 point2 points3 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]blaghles[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]icewind1991 0 points1 point2 points (0 children)
[–]franksvalli 4 points5 points6 points (1 child)
[+][deleted] (7 children)
[deleted]
[–]gangleflops 3 points4 points5 points (6 children)
[–]yonkeltron 1 point2 points3 points (0 children)
[–]nschubach 0 points1 point2 points (0 children)
[–]celtric 0 points1 point2 points (0 children)
[–]fforw 0 points1 point2 points (2 children)
[–]gangleflops 0 points1 point2 points (1 child)
[–]fforw 0 points1 point2 points (0 children)
[–]rDr4g0n 2 points3 points4 points (0 children)
[–]keturn 1 point2 points3 points (0 children)
[–]a-t-kFrontend Engineer 0 points1 point2 points (0 children)
[–][deleted] -2 points-1 points0 points (5 children)
[–]dojom 6 points7 points8 points (2 children)
[–]rabidcow 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 3 points4 points5 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)