You are viewing a single comment's thread. Return to all comments →
function modifyArray(nums) { const arr = nums.map((e)=>{ if(e%2==0){ return e*2; } else{ return e*3; } }); return arr; }
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 →