Skip to content

// ARRAY ITERATION JS // *** For Each *** // Iterate over each item of the array [1,2,3,4].forEach((item,index)=> { console.log(item,index); // Expected output: // 1 0 // 2 1 // 3 2 // 4 3 }) // *** Map *** // Iterate over each item of array and creates a new array const single = [1,2,3,4] const double = single.map(item => item*2) console.log(do…

Notifications You must be signed in to change notification settings

MWaqasHussain-dev/es6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits

About

// ARRAY ITERATION JS // *** For Each *** // Iterate over each item of the array [1,2,3,4].forEach((item,index)=> { console.log(item,index); // Expected output: // 1 0 // 2 1 // 3 2 // 4 3 }) // *** Map *** // Iterate over each item of array and creates a new array const single = [1,2,3,4] const double = single.map(item => item*2) console.log(do…

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published