Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63022bb commit f3a0dbaCopy full SHA for f3a0dba
exercises/46 - Arrays/array-methods.html
@@ -107,7 +107,7 @@
107
// Make a copy of the toppings array with a spread
108
const toppingsCopy2 = [...toppings];
109
// take out items 3 to 5 of your new toppings array with splice()
110
- toppingsCopy.splice(3, 5);
+ toppingsCopy.splice(3, 3);
111
console.log(toppingsCopy);
112
// find the index of Avocado with indexOf() / lastIndexOf()
113
const avoIndex = toppings.indexOf('Avocado');
0 commit comments