What is Variable:
In a programming Language, a variable is a value that can change, depending on conditions or on information passed to the program. Typically, a program consists of instructions that tell the computer what to do. And Data is the information which is used when program is running. The data consists of variable values and constants or fixed values, that never change. In this article i will explain how one can declare JQuery Variable as well as JQuery Object type variable. Also i will explain what is Jquery $ sign.
Declaring a variable in JQuery:
Now what is Jquery $ sign:
To initialize an object, JQuery uses $ symbol. You can use this symbol to pass selector, function, string etc to execute or implement some functionality. You can replace the symbol $ by jquery word which will give you same result. Basically its a notation you have to use to pass a selector.
So the best way of declaring a variable in JQuery based on my first example is:
JQuery Object Declaration Syntax:
Hope now you can use JQuery in a Object Oriented Way.