Sometimes in JQuery we define variable as var $a=$() which is like declaring a function. So i want to know does it make any change if we define variable as var a only?
Sometimes in JQuery we define variable as var $a=$() which is like declaring a
Share
If you mean:
Then the only difference would be the name. Developers use
$ato indicate that the value is alreadyjQuery-ied. Leaving it off changes no functionality but would be a dis-service to future developers.