Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 193 Bytes

foreach.md

File metadata and controls

8 lines (5 loc) · 193 Bytes

Looping with Foreach

The forEach() method executes a provided function once for each array element.

var arr = ["one", "two", "three"]; 

arr.forEach(e => console.log(e));