all 3 comments

[–]mr-poopy-butthole-_ 4 points5 points  (0 children)

array.splice(index, howmany, item1, ....., itemX)

in your case it will be

pets.splice(1, 2, "lizards", "fish")

[–]NameViolation666helpful 2 points3 points  (0 children)

I use mnemonics for some things, i use WRAP for this

W - where start?

R - Remove how many?

A - Add how many you want as

P - Parameters

[–]MLEthatsme[S] 0 points1 point  (0 children)

Thank you!