I'm seeing here that the length of an associative array in JS gets zeroed. How do I access those 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 get anything ... How do I log in?