+ 2
Hi does anyone know the tips for learning JavaScript?
i was got a problem in arrays hm.. this make me tired
4 odpowiedzi
+ 6
@_Retr0/-
What you did there was creating a string not an array.
You overwrote x with "a" then with "b" and then with "c".
So, 'var x = ("a","b","c")' results in a string with the value "c".
I think you got confused with python.
In javascript you create an Array with brackets:
var x = ["a","b","c"];
+ 1
arrays r created Like this -
var x = ("a","b","c")
so think x as a book
and a,b,c as chapters of the book
0
ok thanks :D
0
oops I forgot