There are 10 elements in an array. What to do if i want to show the first 5 elements from the array by using forEach loop?
let arrays =[1, 2, 4, 6, 7, 44, 5, 7, 6]
arrays.forEach(array =>{}) //
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
There are 10 elements in an array. What to do if i want to show the first 5 elements from the array by using forEach loop?
let arrays =[1, 2, 4, 6, 7, 44, 5, 7, 6]
arrays.forEach(array =>{}) //