or full example - the oldlog("arguments=",arguments) call inside mylog is the "something else" part here
oldlog("arguments=",arguments)
mylog
>oldlog=console.log =function () { [native code] } >function mylog(){ oldlog("arguments=",arguments);oldlog.apply(null,arguments);} =function () { ... } >console.log=global.print=mylog =function () { ... } >print("hello","world") arguments= [ "hello", "world" ] hello world =undefined >
@fanoush started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
or full example - the
oldlog("arguments=",arguments)
call insidemylog
is the "something else" part here