0
How can I Change the Array content from from different functions
The Array is in Codeline 330 and i need to Change the content of this Array in Line 450. So sombody know how to do that ? I'm Feeling dumb https://code.sololearn.com/WRfOY5DCaja6/?ref=app
1 Answer
+ 1
I think you just need to change the array declaration from "const" to "var".
constant values are unchangeable.
this way you can change it anywhere.