numbers = [5,1,13,2,7,9,10]
- Use
each
to return an array with every element in the numbers array doubled. - Refactor the code you implemented for #1 above to use
map
instead ofeach
. - Use
each
to returntrue
if the element is even and returnfalse
if the element is odd. - Refactor the code you implemented for #3 above to use
map
instead ofeach
.