Questions tagged as 'variáveis-globais'


Why using global variables is not a good practice?

I'm reading a JavaScript book called "JavaScript The Good Parts" and in it several times the author says that one should not use global variables because they are "evil". Why are they considered "evil"? What kind of problems can they cause?    ...
asked by 23.12.2013 / 21:57