This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
Slice out a part of an array starting from array element 1 ("Orange"):
const fruits = [" Banana", " Orange", " Lemon", " Apple", " Mango"]; const citrus = fruits.slice(1); document.getElementById("demo").innerHTML = fruits + "<br><br>" + citrus;
The slice() method creates a new array. It does not remove any elements from the source array.