DEV Community

Discussion on: Why are global variables bad?

 
mervinsv profile image
Mervin

Thank you. I think using global vars are too bad for webdev.

Thread Thread
 
bgadrian profile image
Adrian B.G.

The worst thing about them is their Mutability, everyone can change them at anytime, causing spaghetti side effects and there is no way to tell who did what when and why.