← BYTES
JavaScript·Starter·Ref: 3.1.17

What does `[1, 2, 3].length` return?

Have a question about this video? Mention reference 3.1.17 when you contact us.

a.2
b.undefined
c."3"
d.3
The `length` property of an array reports its current number of elements -- 3 for this array -- and is automatically kept in sync as elements are added or removed via methods like push/pop/splice.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES3117#JavaScript