Implement a function called createHelloWorld that returns a new function, which will always return the string "Hello World".
Example 1:
Input: args = []
Output: "Hello World"
Explanation:
const f = createHelloWorld();
f(); // "Hello World"
Example 2:
Input: args = [{}, null, 42]
Output: "Hello World"
Explanation:
const f = createHelloWorld();
f({}, null, 42); // "Hello World"
function createHelloWorld(){
return function(){
return "Hello World"
}
}