GoConqr has a new look! Let us know what you think.

Mind map

CLOSURE

Nguyet Huynh JavaScript Beginner English

Map content

CLOSURE

  1. intro

    • is inner function that access outer function variable
    • 3 scope chain (pham vi truy xuat bien)
      • access own scope
      • outer function's variable
      • global variable
  2. example

    • function outside(x){ function inside(y){ return x+y; } return inside; } fn_inside = outside(3); var result = fn_inside(5); console.log("Result = " + result); var result1 = outside(3)(5); console.log("Result 1 = " + result1);

Information

Description
Beginner JavaScript Mind Map on CLOSURE, created by Nguyet Huynh on 27/12/2016.
Created by
Nguyet Huynh
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?