The The rest Project Operator in javascript is represented by “%=”. This operator is used to divide the worth of the variable by one other operand and assign the rest to the variable which is the primary operand. This may be additionally defined as assigning the rest to the primary operand which is obtained by dividing the variable from the second operand.
Syntax:
x %= y or x = x % y
Instance 1: On this instance, we are going to use the rest operator.
Javascript
|
Instance 2: On this instance, we are going to going to see the usage of the rest operator.
Javascript
|
We’ve got an entire checklist of Javascript Project Operators, Please test this text Javascript Project Operator.
Supported Browser:
- Chrome 1
- Edge 12
- Firefox 1
- Opera 3
- Safari 1