Explore Courses Blog Tutorials Interview Questions
0 votes
in Java by (13.1k points)
Can anyone help me how I can able to remove the element of an array in JavaScript?

1 Answer

0 votes
by (26.7k points)

There are multiple ways to do that:

A = [];

Using this command, you can able to do that, but for the reference variable, it will not work.

You can also use these commands as per your requirements:

A.length = 0


I hope this will help.

Want to become a Java expert? join Java Certification now!! 

Want to know more about Java? Watch this video on Java Tutorial for Beginners | Java Tutorial:

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 6, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.5k answers


108k users

Browse Categories