[].
Then I added the elements to the array inside a loop with arr.add(some items);
Now the array has the added items in runtime only. How can I retrieve the array items to use it on another class{} ?
call the class and bind to current context ..or call the class and pass the variable as parameter( constructor or function depending on what suits you)
What's arr.add()? And what do you mean runtime only? Also just pass it into the class instance as a method argument
This doesn't look like JS
Обсуждают сегодня