How did I do this


var names = ["Alex"[1], "Steve"[2], "Max"[3], "Lopez"[4], "Bob"[5] ;
for (var i = 0; i < names; i ++) {
console.log (names);


First, the array needs an end.
Also, the [1], [2], [3]..etc. shouldn't be necessary.
Finally, you need to put console.log(names**[i]**)


1 Thread per Topic should be enough and @squirtleking's answer seems to be ok. Does it help?


thanks everyone. This really help me in my studies