Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript forEach

const myArray = ['hello', 1, 'thanks', 5];
myArray.forEach((item, index)=>{
	console.log(index, item)
})
Source by www.w3docs.com #
 
PREVIOUS NEXT
Tagged: #javascript #forEach
ADD COMMENT
Topic
Name
4+4 =