mirror of
https://gitlab.com/mfocko/LeetCode.git
synced 2024-11-14 01:49:41 +01:00
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"
|
||
|
*/
|