Problem: 2667. 创建 Hello World 函数
1234567891011121314
/** * @return {Function} */var createHelloWorld = function() { return function(...args) { return "Hello World" }};/** * const f = createHelloWorld(); * f(); // "Hello World" */
123456789
/** * @return {Function} */var createHelloWorld = () => (...args) => "Hello World"/** * const f = createHelloWorld(); * f(); // "Hello World" */