What is the output of the below JavaScript?
var one = ["a", "b", "c", "d"];
alert(one.slice(-2));
Reveal answer
Fill a bubble to check yourself
What is the output of the below JavaScript?
var one = ["a", "b", "c", "d"];
alert(one.slice(-2));