Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

new variable in loop javascript

function createVariables(){
  var accounts = [];

  for (var i = 0; i <= 20; ++i) {
      accounts[i] = "whatever";
  }

  return accounts;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #variable #loop #javascript
ADD COMMENT
Topic
Name
6+2 =