I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Using map, create a new array that contains the distance/time value from each trip. In other words , the new array should contain the (distance/time) value. Assign the result to the variable ‘speeds’.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
.map is an array method that takes an array, performs a routine on all the items (like, for example, divide the distance property of the item by the time property of the item), and returns a new array.
you were pretty near here, only that instead of joining the numbers to make a string, you need to make a mathematical operation between the two numbers