What does the i--> opeator do in JavaScript?

后端 未结 4 1033
一整个雨季
一整个雨季 2021-01-03 12:53

So I took a look at the code that controls the counter on the SO advertising page. Then I saw the line where this occured i-->. What does this do?

He

4条回答
  •  半阙折子戏
    2021-01-03 13:36

    i-->0 is the same as i-- > 0, so the comparison expression if the evaluated value of i-- is greater than 0.

提交回复
热议问题