GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

CLOSURE

Nguyet Huynh JavaScript Beginner Englisch

Inhalt der Mindmap

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);

Informationen

Beschreibung
Beginner JavaScript Mindmap am CLOSURE, erstellt von Nguyet Huynh am 27/12/2016.
Erstellt von
Nguyet Huynh
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck