I am confused about delete operator use on array element.
I found that delete can be used with array elements and it removes the element but doesn't update array length , so basically that element is replaced with undefined.But when i tested it I found that it replaces it with blank.
var test = new Array()
delete test[id];
So i have 3 points regarding this
test[id]
id in this is element or index of element, as I read that id can be both. But when I tested it , I found its working only when i pass index.What if the array has no element and I try to delete by passing any value like
delete test[3]
?- when i delete an element then it replaces that with undefined or blank?