This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
JavaScript automatically converts an array to a comma separated string when a simple value is expected:
const fruits = [" Banana", " Orange", " Apple", " Mango"]; document.getElementById("demo").innerHTML = fruits;