You are reading a single comment by @Nicktonious 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
    =true
    >function mylog(){ print("arguments=",arguments);console.log.apply(null,arguments);}
    =function () { ... }
    >mylog(1,2,3,4)
    arguments= [ 1, 2, 3, 4 ]
    1 2 3 4
    
About

Avatar for Nicktonious @Nicktonious started