The question is how is adding an unnecessary backslash a valid key while accessing the property? And by the way it works if I remove the backslash at the key name while accessing as well.
'use strict';
let x = {
"2nu^mb$er": "number as key",
}
console.log(x["2nu\^mb$er"]); //prints: number as key
console.log(x["2nu^mb$er"]); //prints: number as key
What could be the reason behind the 2 console logs able to access the property?