Postfix AND Prefix increment and decrement in Javascript

By: 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

Get Appointment for Interviews

Feel easy to Get Appointment for Interviews. Whatsapp: +92-302-8700085
Prof. Fazal Rehman Shamil
Latest posts by Prof. Fazal Rehman Shamil (see all)