You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • If you are not interested in the interactive console I/O and just really care about output of console.log then you can override console.log (and global.print alias) method to call previous implementation and also do something else with the arguments

    >console.log == global.print
    >function mylog(){ print("arguments=",arguments);console.lo­g.apply(null,arguments);}
    =function () { ... }
    arguments= [ 1, 2, 3, 4 ]
    1 2 3 4

Avatar for fanoush @fanoush started