This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
The substring() method extract a part of a string and returns the extracted parts in a new string:
let str = "Apple, Banana, Kiwi"; document.getElementById("demo").innerHTML = str.substring(7,13);