on air

Javascript Arithmetic Operators.

back home » Scripting Tutorials » Javascript » Arithmetic Operators.

Arithmetic Operators Examples.

Arithmetic operators are used to perform mathematical operations between variables and values or both. Lets say we have a variable that reads: y=11 then our mathematical operations will be performed as follows. See examples below.

Addition Operator [+].

[x=y+4] then [Answer is x=15] and [y=11]

Subtraction Operator [-].

[x=y-4] then [Answer is x=7] and [y=11]

Multiplication Operator [*].

[x=y*4] then [Answer is x=44] and [y=11]

Division Operator [/].

[x=y/4] then [Answer is x=2.75] and [y=11]

Modulus Operator [%]. Divide to find remainder, if rounded will =0.

[x=y%4] then [Answer is x=3] and [y=11]

Increment Operator [++].

[x=++y] then [Answer is x=12] and [y=12]
[x=y++] then [Answer is x=11] and [y=12]

Decrement Operator [--].

[x=--y] then [Answer is x=10] and [y=10]
[x=y--] then [Answer is x=11] and [y=10]

JS Arithmetic 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...


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