This returns correctly 16:
Number(Math.pow(2,4));
But this not 16, it returns 0:
16&Number(Math.pow(2,4));
Sacha
@Sacha 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.
This returns correctly 16:
Number(Math.pow(2,4));
But this not 16, it returns 0:
16&Number(Math.pow(2,4));
Sacha