Hi!
var xs = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i' ];
console.log(xs.slice(2, 3));
console.log(xs.slice(2));
There's an issue with the example provided above, it says it will print,
[ 'c', 'd', 'e' ]
[ 'c', 'd', 'e', 'f', 'g', 'h', 'i' ]
but it prints
['c'],
['c', 'd', 'e', 'f', 'g', 'h', 'i']
so the first part is wrong.
Thank you for the workshop.
Hi!
There's an issue with the example provided above, it says it will print,
but it prints
so the first part is wrong.
Thank you for the workshop.