I'm working in company as web developer as fresher and example solutions online and I can make sense of most of the code but I'm not entirely sure what this line does.
var $hello = $('<div class=newHello></div>');
I'm assuming that it creates a jQuery variable with the value set to a blank with the class of hello , but I want to be certain and also understand the syntax.
Why does a dollar sign precede the variable value? I know dollar signs are used in jQuery
give me some best example to understand this concept