diff options
author | Kyle K <kylek389@gmail.com> | 2012-06-30 14:30:41 -0500 |
---|---|---|
committer | Kyle Kaminski <kyle@kkaminsk.com> | 2012-06-30 14:30:41 -0500 |
commit | d795d12618bc816c547fc6fd50b167c481be9e22 (patch) | |
tree | 3c5aa791b5e32acd5431546a04e5fe79cdcc2267 /samples | |
parent | f7c4894f42d520126ba957f78d9f888feef32426 (diff) | |
download | fubar-d795d12618bc816c547fc6fd50b167c481be9e22.tar.gz fubar-d795d12618bc816c547fc6fd50b167c481be9e22.tar.bz2 fubar-d795d12618bc816c547fc6fd50b167c481be9e22.zip |
add some express samples, and work more
Diffstat (limited to 'samples')
-rw-r--r-- | samples/func_ret_func.js | 12 |
1 files changed, 12 insertions, 0 deletions
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); + |