News for hackers. Stuff that matters.
Re:The best JavaScript guide ever by points on Wednesday October 06, 2010 @01:48PM (#1764965)
I don't quite understand what you mean by 'returning from a script'. That doesn't make too much sense within Javascript itself, if it's a case of the last expression being considered the return value (I haven't used NodeJS), then you would want:

  doSomething();
  ({x:1});
Re:The best JavaScript guide ever by tlrobinson on Wednesday October 06, 2010 @02:19PM (#1765124)

    eval("{x:1}") // returns 1
    eval("({x:1})") // returns {x:1}