While refactoring I mistakenly put two dash --
before >
and the code seems to work without any error. I checked MDN Operators page but could not find a relevant definition. Can you please let me know what is this operator called.
function checkSitOccupancy(n) {
while (n --> 0)
console.log(n);
}
checkSitOccupancy(2)