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> ` });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter