summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorKyle K <kylek389@gmail.com>2012-06-30 14:30:41 -0500
committerKyle Kaminski <kyle@kkaminsk.com>2012-06-30 14:30:41 -0500
commitd795d12618bc816c547fc6fd50b167c481be9e22 (patch)
tree3c5aa791b5e32acd5431546a04e5fe79cdcc2267 /samples
parentf7c4894f42d520126ba957f78d9f888feef32426 (diff)
downloadfubar-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.js12
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);
+