From d0a9df1754e2c9182f5b3a3a30682b37014e6206 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Wed, 3 Jan 2024 03:20:27 -0500 Subject: 2125,2620,2667 --- 2667/main.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 2667/main.js (limited to '2667/main.js') 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" -- cgit v1.2.3