0
What is meaning of Increments and decrements
What is meaning of Increments and decerments in JavaScript
3 Respuestas
+ 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.
+ 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.
0
Increments means it will +1 of the given value and decerments means it will -1 of the given value