3

Searched for duplicates but couldn't find any..

Is there any substantial difference between:

var $foo = $(this);

and

var foo = $(this);

??

Toni Michel Caubet
  • 19,333
  • 56
  • 202
  • 378

1 Answers1

8

No difference. $ is a valid character in variables. It's a visual cue that tells you that's a jQuery object.

elclanrs
  • 92,861
  • 21
  • 134
  • 171