Is there any better way to read the internal parameters of other functions, other than using global variables?

is there a better way to read parameters inside other functions than using global variables? Although global variables can be used, it is too limited to read and call a large number of parameters. So is there any special way to call and read.

Mar.07,2021

there is no better way for to read and call a large number of parameters . It exists inside the function to facilitate recycling. It doesn't pollute the whole situation.
try to avoid using closures. Remember garbage collection when you're done with it.

your operation is a bit "anti-JS". You can talk about your demand scenario first, and let's analyze it.

then deposit the sessionstorge.


closure, learn about

Menu