Question: # Mapping In this activity, you will create arrays using the ` map ` function with the following heroines dataset: ` ` ` javascript heroines

# Mapping
In this activity, you will create arrays using the `map` function with the following heroines dataset:
```javascript
heroines =[
{ name: "Rapunzel", age: 18},
{ name: "Mulan", age: 16},
{ name: "Anna", age: 18},
{ name: "Moana", age: 16}
];
```
## Instructions
* Use the starter files `index.html` and `map.js` provided in the [Unsolved](Unsolved) folder.
* Create an array of just the names from the heroines array.
* Create an array of strings for each heroines name, followed by a colon, followed by their age.
## Bonus
Create the array of strings using an arrow function instead.
## Hint
Don't forget to use dot notation to access the values for the object keys.
---
2022 edX Boot Camps LLC. Confidential and Proprietary. All Rights Reserved.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!