Good morning,
I'm not sure how the map
method works, does one function for each element of array
as foreach
? Thanks
I would like to know how to do this = >
Take an array of strings and turn it into an array of numbers indicating the length of each string using Array.map
.
- '['Los Angeles', 'New York', 'Huston'] => [11, 8, 6]'