• + 0 comments

    function modifyArray(nums) { let newArr = nums.map(x => x % 2 === 0 ? x * 2 : x * 3); return newArr; }