0
How I can to change local variables into global variables in JavaScript?
3 odpowiedzi
+ 5
By defining them at a global level.
Do you have an example code that illustrates the problem? Please link it.
+ 3
use
window.variableName=value
maybe ...
+ 3
or
declaring a variable without using const, let or var will make it global