Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
techiferous
· 15y ago · 0 comments
I use the $ sigil to differentiate between variables that are DOM elements and variables that are jQuery-wrapped DOM elements.
Comments
[–]
SpiralLab
15y ago
Same here.
var _this = this; //vanilla var $this = $(this); //jQuery
Though, I have encountered people who are really against the $var for stylistic reasons - so ymmv.