GitLab Interview Question

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