diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-01-03 08:20:27 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-01-03 08:20:27 +0000 |
commit | d0a9df1754e2c9182f5b3a3a30682b37014e6206 (patch) | |
tree | c1059f5c15f76943661c85dbd17ab4def4f75c99 /2667/main.js | |
parent | 2704 (diff) | |
download | leetcode-d0a9df1754e2c9182f5b3a3a30682b37014e6206.tar.gz leetcode-d0a9df1754e2c9182f5b3a3a30682b37014e6206.zip |
2125,2620,2667
Diffstat (limited to '2667/main.js')
-rwxr-xr-x | 2667/main.js | 14 |
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" |