I need some help from you guys!
This is my JS code:
var myArray[2] = "Hi";
It says: "SyntaxError: missing ; before statement".
I dont't see where the hell I forgot an ";" in the easiest code ever.
Valid array in JS:
var myArray = new Array(3); // 3 - count of elements
myArray[2] = 'Hi'; // third element has a value "Hi"
Read more about arrays here
Its either a variable declaration:
var myArray = "Hi";
Or you set a property:
myArray[2] = "Hi";
myArray = []yet?