Skip to content

Commit 3296884

Browse files
committed
createhelloworld
1 parent 54909d7 commit 3296884

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

2667-create-hello-world-function.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @return {Function}
3+
*/
4+
var createHelloWorld = function() {
5+
6+
return function(...args) {
7+
return "Hello World";
8+
}
9+
};
10+
11+
/**
12+
* const f = createHelloWorld();
13+
* f(); // "Hello World"
14+
*/

0 commit comments

Comments
 (0)