So since I have been back to free code camp I have a lot of refreshing to do. I was going back over map, and I was wondering how I can log the results of the map. So for example the code below should multiply each value by 2, and map returns a new array…might be obvious, but my confusion is where is the new array? I can log arr to get 1,2,3, but what can I log to show that the values were multiplied?
const arr = [1,2,3];
function double(arr){
arr.map(function(val){
return val * 2;
})
}