Which should I use in my javascript code for comparisons and when testing for more than one condition?
Code:
">" or ">"? "&&" or "&"? etc.
I thought I read somewhere that it's best to use the character entities, but maybe I was mistaken and they are only to be used when you need those special characters in html to show up on the page as that symbol.
I've just realized that the character entities don't work in javascript (when used for the purpose mentioned above) in every circumstance, which brought me to ask this question.
Have I been doing something stupid? lol
Last edited by SillyWilly : 02-01-2008 at 04:45 AM.
|