Welcome to the Treehouse Community
Looking to learn something new?
What does mean $ before value of attribute in JQuery?
Hi. I don't know what $ mean in this example. Why we add this before "<img>".
var $image = $("<img>");
Then $image will be a jquery object. It allows you to manipulate it using jquery method.
Daniel Santos34,969 Points
When you use $ to name a variable, it is a jQuery convention. But when you use it in from of the selector, for example $("#something"), it is the same as, jQuery.("#something"), it is a lot of less typing.