Ub Uuntu wrote:I couldn't find $ in the operators section in w3schools tutorials, so perhaps I was wrong to presume it is a built-in operator.
It's not a built-in operator any more than any other name introduced in the namespace is an operator. It's just a name like
xyz, or
fred, or
whateverYouCallSomething.
The
$ is a valid character to use in a name in JavaScript just like alphabetics, numerics and the underscore.
jQuery defines the
$ as an alias for its
jQuery function.
The way it's used sure looks like it's an operator.
Not really. The ways that it's used it looks like a
function, because that's what it is.