HomeBlogJavaScriptThe main difference between forEach() and map()JavaScriptThe main difference between forEach() and map()By Niall KaderOctober 24, 20121 min readWhile forEach() alters the array that it's called on, map() returns a new array.← PreviousWhen using setTimeout(), setInterval(), or requestAnimationFrame()Next →What is JSONP?