When I call function hi()() with double brackets the function displays hi output and it will also give error saying, that hi is not functi
hi()()
hi
You can use eval() to execute it even if it's string : eval(hi()+'()');
eval()
eval(hi()+'()');