Skip to content

Expand javascript-101/scope #89

Closed
Closed
@ajpiano

Description

@ajpiano

Expand to expain call and apply, and explain them in the context that beginners are familiar with - the notion of this "changing" as you go from one section of code into an event handler . We should link to, if not borrow from, @wycats's Understanding JavaScript Function Invocation and “this”.

We should also explain how to use $.proxy and/or Function.prototype.bind to control the scope of a function later on, as well as the good old var that = this pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Chapter: javascript-101Removed, since https://github.com/jquery/learn.jquery.com/pull/622content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions