mercredi 27 septembre 2017

can somebody explain this JS code

myArray = [];
myArray.length;

myArray[1000000] = true;

myArray.length;

why does this return 100001? ive read this in douglas crockford book and i dont understand what this means




Aucun commentaire:

Enregistrer un commentaire