L
L
LinuxGod2020-04-16 13:52:48
JavaScript
LinuxGod, 2020-04-16 13:52:48

Why does the object show 6 but the length value is 8?

Hello, tell me why there are different indexes? 6 and 8? I did adding to the array through PUSH in a loop.
5e9838fe0f3e4890134010.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-04-16
@sHinE

As far as I remember, this can happen if, after you console.log this array, you have something else written there, i.e. he has changed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question