problems(js): add “2667. Create Hello World Function”
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
f9ecc962a9
commit
19541ce1e7
1 changed files with 13 additions and 0 deletions
13
problems/create-hello-world-function.js
Normal file
13
problems/create-hello-world-function.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* @return {Function}
|
||||
*/
|
||||
var createHelloWorld = function() {
|
||||
return function(...args) {
|
||||
return "Hello World";
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* const f = createHelloWorld();
|
||||
* f(); // "Hello World"
|
||||
*/
|
Loading…
Reference in a new issue