The return is necessary because you use anonymous functions which are
only defined inside the function (printableMessage). The label may
have every name you'll be able to give it.
You can handle (var awesome1 = printableMessage()) like an instance of
printableMessage. The return of them enables you to access its inner
functions.

This not really have to do with node.js only, this is an
JavaScript/ECMAScript thing which you can use on websites too without
any changes, with the only difference that the console.log() isn't
shown on the site but in the console of the developer tools of the
browser.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAFYMSeCYpW6xDZsOgAxyTr4AUaLLqghV95uhSMnyZ9pTePzNXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to