• + 0 comments
    function modifyArray(nums) {
        return nums.map(n => {
            return n * (2 + n%2)
        })
    }