What is meaning of Increments and decrements | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is meaning of Increments and decrements

What is meaning of Increments and decerments in JavaScript

6th Mar 2020, 10:19 AM
Dipanshu Sahu
3 Answers
+ 4
Increment is n++ and decrement is n-- thats simple. Increments increase the value of n by 1 where decrement decrease the value of n by 1.
6th Mar 2020, 10:23 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 1
Increment ++ The increment operator increments the numeric value of its operand by one. If placed before the operand, it returns the incremented value. If placed after the operand, it returns the original value and then increments the operand. Decrement -- The decrement operator decrements the numeric value of its operand by one. If placed before the operand, it returns the decremented value. If placed after the operand, it returns the original value and then decrements the operand.
6th Mar 2020, 2:20 PM
ℓєgιση αятιѕт
ℓєgιση αятιѕт - avatar
0
Increments means it will +1 of the given value and decerments means it will -1 of the given value
6th Mar 2020, 10:21 AM
Dipanshu Sahu