Important Notice:

Course Content
Switch Statement
0/1
break and continue Statements
0/3
Basic Form Validation in JavaScript
0/1
JavaScript & Angular JS (Chapter- 6) M2-R5.1
About Lesson

Increment and Decrement Operators:-

              JavaScript मे Increment Operator का Use है Variable की Value मे एक Number बढ़ाना और Decrement का Use है Variable की value मे एक number कम करना

Symbols

Stands

Example

++

Increment

a++

– –

Decrement

b- –

 

Note:- Increment & Decrement operator Pre और Post दोनों होते हैं।

Example:-

      a=a+1                         same as         a++   or ++a

      a=a-1                         same as         a- –      or – -a

 

 

Increment and Decrement Operators:-

             In JavaScript, the use of Increment operator is to increase the value of the variable by one number and the use of Decrement is to reduce the value of the variable by one number.

Symbols

Stands

Example

++

Increment

a++

– –

Decrement

b- –

 

Note:- Increment & Decrement operators are both Pre and Post.

Example:-

      a=a+1                       same as         a++   or ++a

      a=a-1                         same as         a- –      or – -a

error: Content is protected !!