Browsed by
Tag: IT

Javascript Increment ++ and Decrement — operators

Javascript Increment ++ and Decrement — operators

Increment and Decrement operators are just short cuts for addition and subtraction. But the idea is with the increment operator you only add 1 to a numberWith the Decrement Operator you only subtract 1 or take away 1 from a number.The increment operator looks like this ++ or 2 plus signs.The decrement operator looks like this — or 2 minus signs. The Increment Operator ++ To Increment a number means to add 1 to it. Now let’s add 1 using…

Read More Read More