Can anyone explain what's going on here?
scancolor=0
var temp=255 =255 print(temp.toString(16)); FF =undefined var temp=255*Math.pow(256,scancolor); =255 print(temp.toString(16)); 255 =undefined
Why is the argument to toString() being ignored in the second case? Other JS interpreters don't seem to have this behavior.
@DrAzzy 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.
Can anyone explain what's going on here?
scancolor=0
Why is the argument to toString() being ignored in the second case?
Other JS interpreters don't seem to have this behavior.