diao Yerik diao Yerik - 3 months ago 9
Javascript Question

can anybody explain for me how "-->" works in javascripts

while (max --> min)
{
console.log(n);
}


I know this is a dcreasing sample, but I want to know where the method is introduced in Official documents?

Answer

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