let a = [1,2,3,4];
a['name']='Tony';
Why is it not showing an error? As it's an array and arrays don't have indexing of strings. And still the length of the array is 4.
let a = [1,2,3,4];
a['name']='Tony';
Why is it not showing an error? As it's an array and arrays don't have indexing of strings. And still the length of the array is 4.