Hi guys,

First post, of many I hope.


I'm currently working on a script that uses global vars inside objects. I notice that in my current setup it's hard to recognize what var is global and what var is defined in the function itself.

Are there any good practices to use to mark global vars? for instance, I've seen vars that supposedly are private marked with a _ prefix, or jQuery vars prefixed with $

Before I start prefixing with g_ I'd like to know your thoughts.