We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 5: Arrow Functions
Day 5: Arrow Functions
Sort by
recency
|
445 Discussions
|
Please Login in order to post a comment
test case 2 is wrong!
input is [14 25 36 47 58 69 70 81 92], but expected output is [28 75 72 141 116 207 140 243 184]
I think the real answer is [42, 50, 108, 94, 174, 138, 210, 162, 276]
check it please
this is the simpliest way to do it , where map() creates a new array from calling a function for every array element and does not change the original array. then just return the new array for modifyArray function.