In [1]:
var msg = ["Hello", "World!"].join(", ");
Out[1]:
undefined
In [2]:
msg
Out[2]:
'Hello, World!'
In [3]:
console.log(msg);
Hello, World!
Out[3]:
undefined
In [4]:
console.error(msg);
Hello, World!
Out[4]:
undefined
In [5]:
throw new Error("Oh noes!");
Error: Oh noes!
    at evalmachine.<anonymous>:1:7
    at run ([eval]:180:19)
    at onMessage ([eval]:63:41)
    at process.EventEmitter.emit (events.js:98:17)
    at handleMessage (child_process.js:318:10)
    at Pipe.channel.onread (child_process.js:345:11)