You are reading a single comment by @user6415 and its replies. Click here to read the full conversation.
  • 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?


Avatar for user6415 @user6415 started