About 362,000 results
Open links in new tab
  1. JavaScript Array length Property - W3Schools

    Set the length of an array: The number of elements in the array. length is an ECMAScript1 (JavaScript 1997) feature. It is supported in all browsers: Track your progress - it's free!

  2. Array: length - JavaScript | MDN - MDN Web Docs

    Apr 3, 2025 · The length data property of an Array instance represents the number of elements in that array. The value is an unsigned, 32-bit integer that is always numerically greater than the …

  3. JavaScript Arrays - W3Schools

    The length property of an array returns the length of an array (the number of array elements).

  4. JavaScript Array Length Property

    The length property of an array is an unsigned, 32-bit integer that is always numerically greater than the highest index of the array. The length property returns the number of elements of a …

  5. How to Find the Length of an Array in JavaScript - GeeksforGeeks

    Mar 19, 2024 · JavaScript has a built-in property called length property which is used to return the number of the elements in the array. Example: To demonstrate finding the length of the array …

  6. JavaScript Array length - GeeksforGeeks

    Nov 16, 2024 · JavaScript array length property is used to set or return the number of elements in an array. The length property can also be used to set the length of an array. It allows you to …

  7. How length property of an array works in javascript?

    Jan 24, 2016 · In javascript is it possible to directly set length property of an array. For example I can shorten the array like this: var arr = [1, 2, 3, 4]; arr.length = 2; console.log(arr); // Array [ 1, …

  8. JavaScript Array length Property: Array Length - CodeLucky

    Feb 5, 2025 · A comprehensive guide to the JavaScript Array length property, covering how to get, set, and manipulate array sizes dynamically.

  9. Find Array length in Javascript - Stack Overflow

    Mar 2, 2015 · Determining the length of an array is a fundamental operation in JavaScript. We will explore multiple approaches to find the length of an array. Please refer WebDevLearners for …

  10. JavaScript Array Length – How to Find the Length of an Array in …

    Feb 1, 2024 · Javascript has a <.length> property that returns the size of an array as a number(integer). Here's an example of how to use it: let numbers = [ 12 , 13 , 14 , 25 ] let …

  11. Some results have been removed
Refresh