If I have the following function:
function foo(){
alert('hi');
}
and I don't need to pass any parameters to it, is calling it this way:
foo;
the same as calling it this way:
foo();
function foo(){
alert('hi');
}
and I don't need to pass any parameters to it, is calling it this way:
foo;
the same as calling it this way:
foo();
Comment