aboutsummaryrefslogtreecommitdiffstats
path: root/2667
diff options
context:
space:
mode:
Diffstat (limited to '2667')
-rwxr-xr-x2667/main.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/2667/main.js b/2667/main.js
new file mode 100755
index 0000000..d1a5a00
--- /dev/null
+++ b/2667/main.js
@@ -0,0 +1,14 @@
+#!/usr/bin/env node
+"strict mode";
+
+/**
+ * @return {Function}
+ */
+var createHelloWorld = function () {
+ return function (...args) {
+ return "Hello World";
+ };
+};
+
+const f = createHelloWorld([]);
+f(); // "Hello World"