4elements web design & consultancy



  • dislike -2 28

    Closures in JavaScript

    4elements | web design The Hague blog • Closures in JavaScript

    What You'll Be Creating

    Understanding Closures

    To recap the concepts outlined in the video, note that:

    We covered the concept of variable scope. Specifically, we talked about the following two items:

    • Global Scope is a variable with global scope is accessible everywhere.
    • Local Scope is a variable with local scope is accessible only within a function body.

    In Summary

    Closure is what happens when we manipulate variable scope in our functions. We might do this either to make variable contents accessible where they would not otherwise be, or to protect a variable from unwanted access.

    martijn broeders

    founder/ strategic creative at 4elements web design & consultancy
    e-mail: .(JavaScript must be enabled to view this email address)
    phone: 06 38 55 28 54

By - category

    By - date