-
Notifications
You must be signed in to change notification settings - Fork 0
// 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…
MWaqasHussain-dev/es6
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 0
No packages published