var a = Array();
a[a.length] = 0;
alert(a.length);
What will be displayed in alert box?
Hm... I didn't know that Array() create a new array. I thought operator new is required and without new the context inside Array function will be the window.
2018 Jan 26, 6:50:46 PM
Login in to like
Login in to comment