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 Respostas
+ 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