I have an array like this
var list =['lemon', 'apple'];
list['yuck'] = 'durian';
list.forEach(function(i){
console.log(i);
});
The out put is
lemon
apple
So where is durian?
This question is not about how use array properly, I just find it odd that we able to do that, what's really going on here?