in JavaScript by
What are the problems with global variables in Javascript?

1 Answer

0 votes
by

The problem with global variables is the conflict of variable names of local and global scope. It is also difficult to debug and test the code that relies on global variables.

...