Match the outputs

Report a typo

Below you can see a string, and some methods are applied to it. Match the appropriate methods with their correct results.

let string = "Fred fed Ted bread, & Ted fed Fred bread";
Match the items from left and right columns
console.log(string.slice(0, -1));
console.log(string.slice(0, 0));
console.log(string.slice(10, -1));
console.log(string.slice(1, -10));
Fred fed Ted bread, & Ted fed Fred brea
Empty string
ed bread, & Ted fed Fred brea
red fed Ted bread, & Ted fed
___

Create a free account to access the full topic