Actually, return statements are alloud in functions that return void.
The only different is you don't return an actual value. The way you do
this is like this.
void main ()
Since I didn't pass a value or variable to the return statement it
defaults to void.About the only time you want to do this is when your
function needs to exit early and without continuing with the rest of
On 3/24/10, Oriol Gómez <ogomez....@gmail.com> wrote:
> I'm going to try to answer your questions:
> 1. Void fucntions are functions that don't return anythin gI.e: No
> return statements allowed.
> 2. "3+5" in between quotes is going to be printed as such.
> if you say alert("3+5=8"); it's going to print exactly that. if you
> said something like.
> alert("hey "+3+5);
> that would print 8 because you're putting it outside a string.
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
All messages are archived and can be searched and read at
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.