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
The double parenthesis would have been useful if hi had returned a function instead of its name, like in
function hi(){ return hello; } hi()();
That's probably what was the intent.