I get the first slice of Banana:
let str = "Apple, Banana, Kiwi";
document.getElementById("demo").innerHTML = str.slice(7,13);
Now this one confuses me because it is zero based and shows this as the answer
let str = "Apple, Banana, Kiwi";
str.slice(-12, -6) // Returns Banana
not sure why its not " "Banan - quotes mean a space and the -6 above includes the last character but it shouldn't as my example here shows because as javascript states with slice method the last number is not included. Hope you can help the confusion on my part??