const html = `<ul> ${users.map(user => `<li>${user.name}</li>`).join("")} </ul>`; console.log(html); // <ul> <li>Sam Doe</li><li>Alex Blue</li> </ul>