Map() in JavaScript

PHOTO EMBED

Mon Aug 15 2022 20:13:14 GMT+0000 (Coordinated Universal Time)

Saved by @EMR4HKLMN #javascript

let singleUser = users.map((user)=>{
  //let's add the firstname and lastname together
  let fullName = user.firstName + ' ' + user.lastName;
  return `
    <h3 class='name'>${fullName}</h3>
    <p class="age">${user.age}</p>
  `
});
content_copyCOPY

https://www.freecodecamp.org/news/top-javascript-concepts-to-know-before-learning-react/