I'm learning Javascript ECMA6
, but I have a problem, I trying a example from my book and results in Chrome and Safari not equal, my question is my question is whether this will affect developments in the future.
var pizzas = ["Margherita", "Mushroom", "Spinach & Rocket", "Pineapple & Sweetcorn"];
delete pizzas[2]
**Safari**
pizzas; //["Margherita", "Mushroom", 3: "Pineapple & Sweetcorn"]
**Chrome**
pizzas; //(4) ["Margherita", "Mushroom", empty, "Pineapple & Sweetcorn"] 0 : "Margherita" 1 : "Mushroom" 3 : "Pineapple & Sweetcorn"
length : 4
Version Javascript in Chrome : 6.3.292.46
In Chrome I see empty value in 2 position in Chrome and Safari show a '3' in the next value to detele, this is really important to develop in Javascript?
I think that in Firefox is the same result (other result).
Regards