When I run node in my console and type var _ = require(\'underscore\');, _ ends up undefined. If I put the same code in a file and execute it, the
var _ = require(\'underscore\');
_
The Node repl binds _ to the value of the last evaluated input; which overwrites your _ binding in var _ = ...;. Also see the node.js documentation on the repl.
var _ = ...;
This is true no matter what replaces ..., for example:
...
$ node > var _ = "any value"; undefined > _ undefined