Answers for "foreach kjavascript"

1

foreach in javascript

const avengers = ['IronMan','thor', 'captain america', 'hulk'];
avengers.forEach((item, index)=>{
	console.log(index, item)
})
Posted by: Guest on April-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language