Home > AI > Uncategorized

slice

array.slice(start, end)

Example :

var fruits = ["Banana", "Orange", "Lemon", "Apple", "Mango"];
var citrus = fruits.slice(1, 3);
document.getElementById("demo").innerHTML = citrus;
Related posts:

Leave a Reply