I have an array like below
  arr=[];
  arr[0]={"zero": "apple"};
  arr[1]={"one": "orange"};
  arr["fancy"]="what?";
but i am getting length as 2 when i do console.log(arr.length)  even though i am able to console all the values .
and not able to get all values while doing   console.log(JSON.stringify(arr))
What is the issue here.
here is the link to fiddle fiddle
 
     
     
    