In browser environment, every global variable in javascript is a member of the window variable.
E.g. setTimeout is the same as window.setTimeout.
I've noticed that there is no window variable available? Is there something similar?
I'd like to be able to do something like
var a = 1; digitalWrite(global['LED' +a], 1);
Is this possible?
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.
In browser environment, every global variable in javascript is a member of the window variable.
E.g. setTimeout is the same as window.setTimeout.
I've noticed that there is no window variable available? Is there something similar?
I'd like to be able to do something like
Is this possible?