while (max --> min)
{
console.log(n);
}
I know that -->
decreases the value, but where is -->
documented in the official documentation?
The less than or equal operator ( <= ) returns true if the left operand is less than or equal to the right operand, and false otherwise.
JavaScript +_ operator: It is a combination of the variable with symbol underscore( _ ) and unary plus ( + ) operator, + operator converts the type of _ variable to Number type for further operation. Example: The variable “_” with string type is stored in variable “r” with “number” type.
+ is an arithmetic operator while += is an assignment operator.. When += is used, the value on the RHS will be added to the variable on the LHS and the resultant value will be assigned as the new value of the LHS..
It is the post decrement operator --
followed by the greater than operator >
. Just the spacing is weird.
while (max-- > min)
So, while max
decremented is larger than min
…
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With