Problem with array

Hi!
i am a newcomer in three and js and programming at all, and just making first steps.
Maybe my question is stupid but anyway i need help.

So, I`ve arrange an array, but interpreter says that it is not defined. Screen is attachedproblem

So, i dont understand what i am doing wrong. Thank you in advance!

Hi there!
Can you show all the code?
I see no problem in code in your screenshot.

@Awakened It doesn’t seem like there really is a problem with your syntax, so it must be your usage of the array. Your scope of it when you use it must be wrong.

See this article: https://www.w3schools.com/js/js_scope.asp

Let me know if your problem continues or if you have trouble fixing it :wink: