By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,259 Members | 1,714 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,259 IT Pros & Developers. It's quick & easy.

Underline before variable name

P: 22
What is the difference between these?
Expand|Select|Wrap|Line Numbers
  1. var text = 'text';
  2.  
  3. var _text = 'text';
  4.  
Aug 31 '09 #1
Share this Question
Share on Google+
2 Replies


RamananKalirajan
100+
P: 607
Laggon666,
Both are identifiers.. Names for an variable. They dont have any difference.

Regards
Ramanan Kalirajan
Aug 31 '09 #2

gits
Expert Mod 5K+
P: 5,390
that is correct, basicly there is no difference ... sometimes the underscore is used to mark a variable or function intentional as private ... but it depends on the convention that the developer follows ...

kind regards
Aug 31 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.