Zoom Communications interview question

Describe the difference between javascript's foreach and map methods.