GitLab interview question

What's the difference between .map and .forEach?