on air

JavaScript Basics | Operators.

back home » Scripting Tutorials » Javascript » JavaScript Basics | Operators.

Operators And Their Functions.

Operators are used to perform operations on text and numeric values in scripts.

See Table Below.

Operators Explaining Arithmetic Operators Usage
+ Addition Operator is used to perform additions on numeric data, and also used to put Strings together forming a statement. (Concatenation) x + y
- Subtraction operator x - 4
/ Divition Operator x / y
* Multiplication Operator x * y
% The modulus is used, finding the remainder of an equation. And whenever an equation results is rounded will it = 0. x % y
+ + This causes an increment by one. x + +
- - This causes a decrement by one. x - -
Operators Explaining Assignment Operators Usage
= This swaps the value on its right into the operand on its left. x = 1
+ = This goes like so; x equals x + y [x=x+y] x + = y
- = This goes like so; x equals x - y [x=x-y] x - = y
* = This goes like so; x equals x * y [x=x*y] x * = y
/ = This goes like so; x equals x / y [x=x/y] x / = y
% = This finds the remainder in x % y [x=x%y] x % = y
Operator Explaining Comparison Operators Usage
= = Is equal to x = = y
= = = Is exactly equal to type and value x = = = y
! = Is not equal to x ! = y
< Is less than x < y
> Is greater than x > y
< = Is less than or equal to x < = y
>= Is greater than or equal to x > = y
Operators Explaining Logic Operators
! This sign means "not" - Placing the sign in front of a value will bring it to a not or null. [Meaning value is empty]
|| This is an "Or" - It's used to add more comparisons in one evaluation statement, where only one must meet.
&& This is an "And" - It's used to add more comparisons in one evaluation statement, where all must meet.
? Ternary is used, performing simple evaluations, and returning results. This operator, works with three operands. [condition ? value if true; value if false;]

JS Operators.


Man will give you worldly powers, and make you feel on top of all, note this is temporally and could be redrawn at anytime sending you back to the ground floor of life. However, the Lord Almighty, the one and the only rightful ruler of the Universe, blesses everlastingly.


Knowledge is Power, but Power is not Knowledge. Wisdom is the truthful Power that identifies the Knowledge within the man. And only, I repeat 3x. Only the almighty God has the power to bless the man with his Wisdom forever.

To achieve the Lord's blessings, cease not praying daily, asking for his Wisdom, and you'll be blessed abundantly...

Advertise your business here

Advertising your business means a lot to us. For less than 20€, you can place your business ad here and start receiving traffic.

Place your ad here


Spyera Phone

Spyera Phone version is software that you install on a smart phone to monitor everything happening on the phone. After installation, SPYERA secretly records events (sms, call history, phone book, location, emails, What's App messages, IM, Facebook Chat, Skype, See photos taken and many more...) that happen on the phone and delivers these information to a web account, where you can view these reports 24/7 from any Internet enabled computer or mobile phone. SPYERA also allows you to listen to the surroundings of the target mobile , listen to the phone conversation and to know the location of the device.

Please, Kindly Donate What You Can, Enabling Us Pay Hosting And Domain Costing, And Do More.

Please Donate