From d795d12618bc816c547fc6fd50b167c481be9e22 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Sat, 30 Jun 2012 14:30:41 -0500 Subject: add some express samples, and work more --- samples/func_ret_func.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 samples/func_ret_func.js (limited to 'samples/func_ret_func.js') diff --git a/samples/func_ret_func.js b/samples/func_ret_func.js new file mode 100644 index 0000000..b4b5a09 --- /dev/null +++ b/samples/func_ret_func.js @@ -0,0 +1,12 @@ +/* very fucking weird! + */ + +function retFunction(foo) { + return function bar() { + console.log(foo); + } +} + +var foo = new retFunction('hello, world!'); +foo.call(foo); + -- cgit v1.2.3