Match methods

Report a typo

Match the code with the console output for this array:

let arr = [2, 4, 8, 5, 3, 9, 6, 2, 4];
Match the items from left and right columns
console.log("853962".split("", 4));
console.log(arr.splice(2, 6));
console.log([8, 5].concat(arr.splice(4)));
console.log(arr.slice(2, 6));
[8, 5, 3, 9]
[8, 5, 3, 9, 6, 2]
['8', '5', '3', '9']
[8, 5, 3, 9, 6, 2, 4]
___

Create a free account to access the full topic