String.fromCharCode seems to return strange values for codes below 8: String.fromCharCode(8) -> "\b" (OK)
String.fromCharCode(7) -> "\713" (???)
Although String.fromCharCode(7).length returns 1 it doesn't seem to be the same as "\x07".
What's going on here?
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.
String.fromCharCode seems to return strange values for codes below 8:
String.fromCharCode(8) -> "\b" (OK) String.fromCharCode(7) -> "\713" (???)
Although
String.fromCharCode(7).length
returns 1 it doesn't seem to be the same as "\x07".What's going on here?