Postfix AND Prefix increment and decrement in Javascript

Prof. Fazal Rehman Shamil
Last modified on October 8th, 2019

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

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.