user image

Naina Kashyap

Graphic Designing
Graphic Designing
2 years ago

What Are The Three Ways To Empty An Array?

user image

Muskan Anand

2 years ago

1) Using length property. The length property returns the number of elements in that array. ... 2) Assigning it to a new empty array. This is the fastest way of emptying an array. ... 3) Using Array method splice()

Recent Doubts

Close [x]