MonLes

Directory

  • Day13–01
    — closure
    — prototype basics
  • Day13–02
    — closure

repl.it |
JS-Day13–01 | Here
JS-Day13–02 | Here

Closures

  • combination of lexical environment and function
  • allows a function to access variables in the enclosing or outer scope
  • all matters in JS, where is the function written

--

--