var a = 'Window'; function sayHi() { var a = 'Closure'; console.log('now is Function.'); return function () { console.log('Hello' + ' ' + a); } } sayHi()();
This Pen is owned by Ray on CodePen.
See more by @hsiangfeng on CodePen
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.