0

The question about javascript varabile with a dollar sign has been answered by a couple of times.

In short, the dollar sign plays as an identifier in javascript variable.

However, I was wondering are there more differences between the normal variable and the variable with dollar sign?

Behind the scene, will they have different memory location mechanism? or some other else.

Thanks for any reply. : )

Sam
  • 3,889
  • 10
  • 40
  • 74

1 Answers1

3

A dollar sign has no specific meaning in JS. Usually it is used to distinguish jQuery objects from other variables but it's just a practice, not a rule.

The JS interpreter doesn't make any difference between "normal" variables and dollar variables; no different memory location or anything else, they are just common variables.

ulentini
  • 2,359
  • 1
  • 12
  • 25