Avatar for user6415

user6415

Member since Feb 2014 • Last active Feb 2014
  • 1 conversations
  • 1 comments

Most recent activity

    • 2 comments
    • 2,264 views
  • in JavaScript
    Avatar for user6415

    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?

Actions