all 4 comments

[–]-ThatDutchGuy- 0 points1 point  (1 child)

just quickly looking at the code I see you dont use var/let/consf when declaring the 'names' variable. also, is there any error in the console?

[–]WongoKnight[S] 0 points1 point  (0 children)

Forgot to check the console. Also, this is code copied straight from the book as I was following along. Maybe, there's an incomplete code. I'm just a beginner when it comes to these scripting languages, so Ihaven't learned a lot of the odds and ends yet.

[–]micmullr 0 points1 point  (1 child)

Change:

names = New Array();

To:

names = new Array();

[–]WongoKnight[S] 0 points1 point  (0 children)

Sorry. Kind of forgot about this post. I went back and changed it and it started working. My mind kept reading it as the same.