und \n funktionieren nicht. Das br-Tag funktioniert in normalem JS, reagiert aber nicht.
Was ich suche, ist
Hallo Afrika
Hallo Amerika
usw.
Was ich bekomme, ist Hallo Afrika, Hallo Amerika usw.
Code: Select all
const continents = ['Africa','America','Asia','Australia','Europe'];
const helloContinents = Array.from(continents, c => `Hello ${c}!`);
const message = helloContinents.join("
");
const element = (
{message}
);