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’ll use the rest operator.
Javascript
|
Instance 2: On this instance, we’ll going to see using the rest operator.
Javascript
|
We’ve got an entire record of Javascript Project Operators, Please examine this text Javascript Project Operator.
Supported Browser:
- Chrome 1
- Edge 12
- Firefox 1
- Opera 3
- Safari 1