This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
The for of statement loops through the values of any iterable object:
const cars = ["BMW", "Volvo", "Mini"]; let text = ""; for (let x of cars) { text += x + "<br>"; } document.getElementById("demo").innerHTML = text;