3
I am seeing here that the length of an associative array in JS is reset.. As I access these values then?
Example:
let myArray = [];
myArray['zero'] = 0;
myArray['um'] = 1;
myArray['dois'] = 2;
console.log(myArray.length);
If I want to give a foreach for example, I can not, because it does not catch anything... How do I access?
Try
for (var key in myArray) {
 var value = myArray[key];
 console.log(key, value);
}
– Sam