[Solved] How can I pass a value from one function to another function which has object and without declaring a global variable in JS? [duplicate]

[ad_1]

How can I pass a value from one function to another function which has object and without declaring a global variable in JS? [duplicate]

[ad_2]

solved How can I pass a value from one function to another function which has object and without declaring a global variable in JS? [duplicate]