That's probably the second most stupid question I have ever read on Usenet.
No. foo; does not call it at all. It's a statement returning the
function foo, but since you're not doing anything with the value it's
a useless statement.
A contrived example of foo; is:
var bar = foo; // assign function foo to bar
bar(); // call the function.
IOW, you do need the parentheses if you want to call a function.
[...]
Thanks for clearing that up.
I really wonder what is so difficult about trying something out before
asking (or to read the available reference material, including this
newsgroup's FAQ, for that matter). If you are this afraid that code that
you write could have effects this dangerous on the computer you are
developing on, you should forget all about programming and computer science,
and move to a happy little island nowhere near any technology.
<
http://jibbering.com/faq/>
<
http://catb.org/~esr/faqs/smart-questions.html>
PointedEars, shaking his head