I've a javascript variable and running it in my firefox console.
var name = ['manish','google'];
alert(name[0]);
The result of above alert is m
But If rewrite the code as below
var names = ['manish','google'];
alert(names[0]);
Then it alerts manish
Can anyone please let me know that what is the reason behind this?