Difference between revisions of "Loops"

From rbachwiki
Jump to navigation Jump to search
(Created page with "==Foreach Loop== <pre> var letters=["a", "b", "c"]; letters.forEach(function(items){ console.log(items); }); </pre>")
 
Line 1: Line 1:
==Foreach Loop==
==Foreach Loop==
<pre>
<nowiki>
var letters=["a", "b", "c"];
var letters=["a", "b", "c"];
letters.forEach(function(items){
letters.forEach(function(items){
   console.log(items);
   console.log(items);
    
    
});
});</nowiki>
</pre>
 
==[[#top|Back To Top]]-[[Main_Page| Home]] - [[Java Script|Category]]==

Revision as of 13:56, 28 October 2016

Foreach Loop

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

Back To Top- Home - Category