13 lines
204 B
JavaScript
13 lines
204 B
JavaScript
/**
|
|
* @return {Function}
|
|
*/
|
|
var createHelloWorld = function() {
|
|
return function(...args) {
|
|
return "Hello World";
|
|
};
|
|
};
|
|
|
|
/**
|
|
* const f = createHelloWorld();
|
|
* f(); // "Hello World"
|
|
*/
|