You are viewing a single comment's thread. Return to all comments →
JavaScript
function modifyArray(nums) { let modifieNum = []; for(let num of nums){ if( num % 2 == 0) modifieNum.push(num*2); else modifieNum.push(num*3); } return modifieNum; }
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 →
JavaScript