0 votes
in JavaScript by

The pop() method of the array does which of the following task ?

a) decrements the total length by 1

b) increments the total length by 1

c) prints the first element but no effect on the length

d) updates the element

1 Answer

0 votes
by
Answer:-  A

Reason:  pop() function pops out that is delete the last element from the array. Hence pop() method (it works with push()) reduces the length of an array by 1.

Related questions

0 votes
asked Oct 19, 2019 in JavaScript by SakshiSharma
+2 votes
asked Jul 16, 2019 in JavaScript by Indian
...