Why this anonymous function
(function () {
return ("i am a function")
})()
is equivalent to
function hi () {
return ("i am a function")
}
the function work with hi()
Also why if I removed the brackets for the anonymous function it does not work
function () {
return ("i am a function")
}()