You are viewing a single comment's thread. Return to all comments →
function modifyArray(nums) { let newNums = []; for(let x of nums) { x % 2 == 0 ? x *= 2 : x *= 3; newNums.push(x); } return newNums; }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 5: Arrow Functions
You are viewing a single comment's thread. Return to all comments →