map is used to iterate over an array, execute a function on each element and return an array carrying all results.