Home > Enterprise >  I fill "basket" array with objects. but then, when i try to get array lenght it return me
I fill "basket" array with objects. but then, when i try to get array lenght it return me

Time:02-06

enter image description here

enter image description here

I fill "basket" array with objects, but then, when i try to get array lenght it return me "undefined" value.

enter image description here

The lengh is pale here, is problem connect with that?

CodePudding user response:

The name of the property is length, not lenght.

So,

console.log(basket.length)
  • Related