How to implement following program as per below requirement

Requirement :

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’.

var trips = [
  { distance: 34, time: 10 },
  { distance: 90, time: 50 },
  { distance: 59, time: 25 }
];

var speeds;

2 posts were merged into an existing topic: Javascript Error occure : has correct values

Please do not create duplicate topics for the same challenge/project question(s). This duplicate topic has been unlisted.

Thank you.