The Unusual of JavaScript Arrays and their length Property
The length Update
An update in an array length modifies the array.
See the example below:
const fruits = [];
fruits[132] = "Apple";
console.log( fruits.length ); // 133 => last index + 1
console.log( fruits.length - 100 ); // 33
Writable length pr...
blog.techstackspace.com3 min read
Laszlo Tatai
I am a pogramer / coder / sceener,
Thank U Brotha! :)