while (max --> min)
{
console.log(n);
}
I know that -->
decreases the value, but where is -->
documented in the official documentation?
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
…
max
decremented is larger than min
" be better suited for something like --max > min
?max
's value which is decremented afterwards is larger than min
" seemed a bit unwieldy. I expect everyone knows how --
works… :)for( let i = 0; i++ < n; )
--
and a greater than comparison>
-->
is--
followed by>
, two operators... Somax-- > min
if you prefer.