+ 1

loop + Array

Hi! I have this loop: for(i =1; i < 4; i++{ //I ask for this code } and in the end i want the Array from this loop: var Array = [ "1", "2", "3"]; (dont care if these are doubles or strings etc.) Thanks 👌

30th Nov 2017, 8:38 PM
StoffelJs
2 odpowiedzi
+ 2
Hi, so... what's is your problem?
30th Nov 2017, 9:13 PM
stKhaDgar
stKhaDgar - avatar
0
Your for loop is missing the terminating parenthese. And if you are asking how to access an array you do it by Array[index] with index being the position in the array you want. (Remember in computers indexes are 0-based not 1-based.)
30th Nov 2017, 9:16 PM
Scatoogle