I am trying to learn jQuery and I came across this line in an example.
var $title = $(tag).attr('title');
Can someone please tell me what the prepended $ is for in $title
.
The example seems to work fine if I replace $title
with just title
.
I understand this is probably a stupid question but it is a waste of time googling for "purpose of $"
Many thanks.