What will be output in console:
var animals = ['Tiger', 'Lion', 'Camel', 'Cow', 'Duck']; console.log(animals.slice(2, 4));
What will be output in console:
var animals = ['Tiger', 'Lion', 'Camel', 'Cow', 'Duck']; console.log(animals.slice(2, 4));
What is going to display with this js code:
var myArray = ['a', 'b', 'c']; console.log(myArray[-1]);