Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 299 Bytes

9-beginner-lost-without-a-map.md

File metadata and controls

7 lines (6 loc) · 299 Bytes

Problem:

Given an array of integers, return a new array with each value doubled.

For example:

[1, 2, 3] --> [2, 4, 6]

For the beginner, try to use the map method - it comes in very handy quite a lot so is a good one to know.

Solution