LogicManager interview question

What is the difference between for-each and map in JS?

Interview Answer

Anonymous

May 12, 2019

I was not sure how JS implements map. My answer consisted of mapping a certain function to a given array automatically, whereas for each goes through each element manually.