OneCompiler

[JavaScript] What is the difference between Array.size() vs Array.length?

In Arrays what is the difference between Array.size() and Array.length

1 Answer

4 years ago by

Array.size() is not a valid method in Javascript and always prefer using the .length property to get the length of an array.

4 years ago by Meera