"Named function expression" is wrong #415

Closed
smerny opened this Issue Aug 27, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@smerny

smerny commented Aug 27, 2013

From the guide:

// Named function expression.

var foo = function() {
    // Do something.
};

This is actually a variable assigned to an anonymous function.

@scottgonzalez

This comment has been minimized.

Show comment Hide comment
@scottgonzalez

scottgonzalez Aug 27, 2013

Owner

Indeed. The expression should be of the form:

var foo = function foo() { ... };

To be honest, I don't think named function expressions are a JS101 topic.

Owner

scottgonzalez commented Aug 27, 2013

Indeed. The expression should be of the form:

var foo = function foo() { ... };

To be honest, I don't think named function expressions are a JS101 topic.

@arthurvr

This comment has been minimized.

Show comment Hide comment
@arthurvr

arthurvr Dec 5, 2014

Member

To be honest, I don't think named function expressions are a JS101 topic.

I agree on that. I'il open a PR.

Update: Opened #578

Member

arthurvr commented Dec 5, 2014

To be honest, I don't think named function expressions are a JS101 topic.

I agree on that. I'il open a PR.

Update: Opened #578

@gnarf gnarf closed this in 483e237 Dec 23, 2014

arthurvr added a commit to arthurvr/learn.jquery.com that referenced this issue Jan 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment