I am new to Javascript and got confused by how the function declaration works. I made some test on that and got some interesting results:
say(); function sa
Its always good idea calling the function later, even though javascript works like that.
Most of the languages won't work that way, instead do this.
function say(){ alert("say"); } say();
or
say = function(){ alert("say"); } say();
(function(){ alert("say"); })();