I fill "basket" array with objects, but then, when i try to get array lenght it return me "undefined" value.
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)