scrimba
Using the Map Method: Part 3 of 3
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Using the Map Method: Part 3 of 3
AboutCommentsNotes
Using the Map Method: Part 3 of 3
Expand for more info
index.js
run
preview
console
let arr = [2, 3, 5, 7];





















// let arr = [3, 4, 5, 6]

// let modifiedArray = arr.map(function(element){
// return element * 3
// })

// let users = [
// {firstName : "Susan", lastName: "Steward"},
// {firstName : "Daniel", lastName: "Longbottom"},
// {firstName : "Jacob", lastName: "Black"}
// ];

// let userFullNames = users.map(function(element){
// return `${element.firstName} ${element.lastName}`;
// });
Console
/index.html
-13:20