0 votes
in JavaScript by

The _______ method of an Array object adds and/or removes elements from an array.

a) Reverse

b) Shift

c) Slice

d) Splice

1 Answer

0 votes
by

Ans : D

Reason: The splice() method returns the removed item(s) in an array and slice() method returns the selected element(s) in an array, as a new array object

Related questions

0 votes
asked Dec 2, 2022 in JavaScript by john ganales
+1 vote
asked Mar 22, 2021 in JavaScript by Robindeniel
...