Log the array returned by map

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){
    return val * 2;

So .map(...) returns a new Array. It might be wise to place that into a variable somewhere, then simply log the variable.


let myNewArr = arr.map(...);

… would do what you’re looking for, I think.