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 developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #forEach
ADD COMMENT
Topic
Name
3+9 =