javascript variable shortcuts
snippet in javascript

javascript variable shortcuts

user1894

// adds 1 to A
A++;
// subtracts 1 from A
A--;
// adds B to A
A += B;
// subtracts B from A
A -= B;
// multiplies A by B
A *= B;
// devides A by B
A \= B;