In JavaScript functions, do I need to return something (true or false) ? So far, all the functions I wrote without returning anything work just fine. I\'m just curious.
no you dont. I believe if you do
var result = iAmADefinedFunctionThatDoesntReturnAnything();
result will be undefined.
Edit, this screenshot should be illuminating (forgive the mistake when i fail to invoke f):