+ 3
Hey explain example JS
Why output 5 if we have condition <5? Its do i++ sou works on output? https://code.sololearn.com/Wai9Bk0oaWTf/?ref=app
2 Respuestas
+ 5
When i becomes 5 then only the condition fails because in do while loop first we execute statement then we check condition.
+ 5
You're right P.Nandini