• + 0 comments

    //Method 6 , more reduction function modifyArray(nums) { return nums.map(n=>(n%2)?n*3:n*2); }