TLightSky / closure for var in javascript
Created 2016-10-24 Modifyed 2016-10-24

17 Words

clojure

(function (a) {
  return function () {
    console.log(a);
  }
})("arg");

bind

(function (a) { console.log(a); }).bind("arg");