diff --git a/2667-create-hello-world-function/2667-create-hello-world-function.js b/2667-create-hello-world-function/2667-create-hello-world-function.js new file mode 100644 index 0000000..15d24d9 --- /dev/null +++ b/2667-create-hello-world-function/2667-create-hello-world-function.js @@ -0,0 +1,14 @@ +/** + * @return {Function} + */ +var createHelloWorld = function() { + + return function createHelloWorld(...args) { + return "Hello World"; + } +}; + +/** + * const f = createHelloWorld(); + * f(); // "Hello World" + */ \ No newline at end of file