Hello, why does the first mode work and the second not?
The first mode does the correct operation.
The second mode just does nothing, the value in the array remains the same.
function.param(1) is the second parameter, you only have 1 parameter so i guess you need function.param(0). function.param(1) has no value here.
Develop games in your browser. Powerful, performant & highly capable.
There are two parameters.
If it were as you say then the first mode would not work either, but it does work, I mean that the operation (a subtraction) is performed well but in the second mode nothing happens and no operation is performed.
Call to the function