Loops

From rbachwiki
Revision as of 14:15, 28 October 2016 by Bacchas (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Foreach Loop

var i=0;
var letters=["a", "b", "c"];
letters.forEach(function(items){
  console.log(i + " - " +items);
  i++;
  
});

Back To Top- Home - Category