About terminal condition

I am a little confused because of my english and just to make sure:

terminal condition when we are talking about loops:

for (let i = 0; i < m; i++) {

In the snippet above terminal condition will be i < m ?

Hi :wave:t2:
Yes exactly:
To keep it simple with the language I would say to remember is this way:
1 - start point
2 - end point
3 - step

Hope it helps

Yeah, that helps! But different people use different terminology sometimes, I feel it’s important to wrap my mind around this kind of stuff in order to communicate effectively

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.