DEV Community

Discussion on: Why are global variables bad?

Collapse
 
mervinsv profile image
Mervin

Yeah. There are still a lot of global variables being use and are still useful. But I think global variables are frequently use to declare constants inside the app. Like App object in Windows applications.

What I mean by global variables here are the one that is being declared/created by the programmer.