what is the difference between these statements? I know that “var $test” declares a jquery variable, but what is the difference of a jquery variable with a general javascript variable ?
what is the difference between these statements? I know that var $test declares a
Share
Nothing. No difference. $ is a valid character in a JavaScript identifier but has no special meaning. In fact, in the ECMAScript 3 specification in section 7.6 it states that
… although events have now probably rendered that recommendation obsolete. Indeed, the recent ECMAScript 5 spec omits the final sentence.