Actually i solved it.But here my question is where did countdownIndex is decreased by 1 value for each cycle.Actually theres the if condition for countdownIndex that works only if countdownIndex is zero otherwise it will be same value or in that condition only it always decreases its value.pls clear my vision thanks in advance!!!
Solved but you need to clear my vision.lol.
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Sanjeevkumar
30 July 2020, 09:05
so thats the way it works. Thank you!
0
Sela
29 July 2020, 14:42
there are 2 operators in the boolean expression of if statement in this task
1. pre-unary operator
2. equal to operator
operators are evaluated in order of precedence i.e. unary operator has highest precedence thus this operator is applied first. it is prefixed so countdownIndex is first decremented by 1 and the decremented value is returned. after that equal to operator evaluates to boolean value +3