Nalini1998 / Project_Public

MIT License
2 stars 0 forks source link

Which of the methods below does NOT change the array it is called on? #538

Closed Nalini1998 closed 1 year ago

Nalini1998 commented 1 year ago

Which of the methods below does NOT change the array it is called on?

A/ .pop()

B/ .push()

C/ .slice()

D/ .shift()

Nalini1998 commented 1 year ago

I chose C/ .slice()