Home jquery What is the difference between the variables in jQuery C $ and...

What is the difference between the variables in jQuery C $ and without

Author

Date

Category

What is the difference between variables:

var this_obj = $ ("div");
and
var $ this_obj = $ ("div");

more interested in the use of such variables, in what cases and why?


Answer 1, Authority 100%

No difference, Personally, I use variables with the ‘$’ prefix when it contains an object jQuery to make it easier to read the code.


Answer 2, Authority 17%

Recently there was such a question, they do not differ anything, it’s just a general recombination, you can write like that if you want to show that this is an object jQuery

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions