Hello every one
may some one can help me in this issue. When I use Literal syntax for Array like this:
var name = ['name1', 'name2', 'name3', 'name4'];
alert(name[2]);
it return to characters in Array, but when i use it like this way:
var names = ['name1', 'name2', 'name3', 'name4'];
alert(names[2]);
it return to the name3 at full not just one character on it.
So my question is, there any point i miss to learn about this technique, or it could be problem in language ?