Why does delete operator return true if I try to delete non existing indexed element of an array?
More precisely deletion of undefined is true in javascript?
var arr = ['a','b','c','d'];
console.log(delete arr[2000]); //true why?
console.log(delete aaaaa); //true why not reference error?
console.log(delete arrr[2000]); //reference error it's okay i think
I don't understand difference between 2nd and 3rd deletion. Both should ideally give reference error.