Let’s create a map function that invokes a callback on each element in an array/slice — Today, we’re going to create a function that calls a callback for each element of our array/slice to adjust the respective value and return it. Now, you may be asking yourself, “What the heck! Why would I want to do that?”. Well, imagine if you had to capitalize every word…