---
title: "Discussion on \"JavaScript.length\" | Hashnode"
description: "Discussion on \"JavaScript.length\". Did you know, that the Array.length property in JavaScript doesn't actually give you the length of the array but gives a number that is the largest index + 1?\nSee the code below:For an Array with 8 items, the length is 101!\nvar array = [1, 2, 3];\n\nar..."
url: "https://hashnode.com/posts/javascriptlength/63ef1c08a154d4ded639c3bf"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [JavaScript.length](https://quraishcodes.hashnode.dev/javascriptlength?utm_source=hashnode&utm_medium=feed)

Did you know, that the Array.length property in JavaScript doesn't actually give you the length of the array but gives a number that is the largest index + 1? See the code below:For an Array with 8 items, the length is 101! var array = \[1, 2, 3\]; ar...

Feb 17, 2023 · 1 min read · quraishcodes.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#programming-fundamentals](https://hashnode.com/tag/programming-fundamentals)

## Written by

[Quraish](https://hashnode.com/@Quraish05)

@Quraish05

  
[View profile](https://hashnode.com/@Quraish05)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
