Skip to content

Commit f3a0dba

Browse files
committed
Fix second argument for .splice
1 parent 63022bb commit f3a0dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/46 - Arrays/array-methods.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
// Make a copy of the toppings array with a spread
108108
const toppingsCopy2 = [...toppings];
109109
// take out items 3 to 5 of your new toppings array with splice()
110-
toppingsCopy.splice(3, 5);
110+
toppingsCopy.splice(3, 3);
111111
console.log(toppingsCopy);
112112
// find the index of Avocado with indexOf() / lastIndexOf()
113113
const avoIndex = toppings.indexOf('Avocado');

0 commit comments

Comments
 (0)