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