Answers for "javascript foreach elememt array"

131

javascript foreach

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

Code answers related to "javascript foreach elememt array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language