When I call function hi()() with double brackets the function displays hi output and it will also give error saying, that hi is not function.
<html>
<head></head>
<script>
function hello()
{
document.write("hello");
}
function hi()
{
document.write("hi");
return "hello";
}
hi()();
</script>
</html>
What is the meaning of using ()() with function name?