Skip to content

Commit 7d24af7

Browse files
authored
Create 2667-create-hello-world-function.js
1 parent a5353e9 commit 7d24af7

File tree

1 file changed

+13
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)