% cat foo.js
console.log('log', foo)
% node foo.js
/tmp/foo.js:1
on (exports, require, module, __filename, __dirname) { console.log('log', foo)
^
ReferenceError: foo is not defined
at Object.<anonymous> (/home/km/tm/accel-mma84/foo.js:1:82)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
% tessel run foo.js
TESSEL! Connected to TM-00-04-f000da30-00544f4b-3a702586.
WARN There is a newer version of firmware available. You should run "tessel update".
INFO Bundling directory /home/km/tm/accel-mma84
INFO Deploying bundle (1.27 MB)...
INFO Running script...
log