please tell me that what it is use?
Constraints:
0 <= args.length <= 10
if i add empty {} as parameter it shows error.why?
var createHelloWorld = function(sk) {
if(sk.length>=0 && sk.lengh<=10)
return function() {
return "Hello World";
}
};
const f=createHelloWorld();
f({});
trying to start code in leetcode