problems(js): add “2667. Create Hello World Function”

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-05-12 17:29:13 +02:00
parent f9ecc962a9
commit 19541ce1e7
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -0,0 +1,13 @@
/**
* @return {Function}
*/
var createHelloWorld = function() {
return function(...args) {
return "Hello World";
};
};
/**
* const f = createHelloWorld();
* f(); // "Hello World"
*/