Skip to content
Advertisement

how to fill in the value in the array

i have code like this in actionscript3,

JavaScript

when run, it gets an error in its output

what I want is to fill in each “1” value and not remove the “[” or “]” sign

so when var nom1, var nom2 are changed

Then the output is

JavaScript

please helps for those who can solve this problem

Advertisement

Answer

If what you want to achieve is to replace every 1 by 18 in this nested array, you could try :

JavaScript

Note that, this would only work for nested arrays with 3 levels of depth

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement