Postfix AND Prefix increment and decrement in Javascript

Postfix AND Prefix increment and decrement in Javascript

Postfix AND Prefix increment and decrement in Javascript is the today topic of discussion in this tutorial.

Algorithm of Postfix AND Prefix increment and decrement in Javascript

START

Step 1 → Take  variable  Q,W,E,T

Step 2 → PRE INCREMENT Q

Step 5 → POST INCREMENT W

Step 6 → PRE DECREMENT E

Step 7 → POST INCREMENT T

Step 8→ SHOW THE RESULT

STOP

Program of Postfix AND Prefix increment and decrement in Javascript

Lets see a basic program of Program of Postfix AND Prefix increment and decrement in Javascript.

Output

PREFIX INCREMENT

Value of Q:10

Value of Q:11

—-POSTFIX INCREMENT

Value of W:20

Value of W:20

—-PREFIX DECREMENT

Value of E:5

Value of E:4

—-POST DECREMENT

Value of T:4

Value of T:4

Latest posts by Prof. Fazal Rehman Shamil (see all)

Buy advertisement space on T4Tutorials

For more details email [email protected]