This commit is contained in:
gauthiier 2023-01-15 12:22:25 +01:00
parent ee6c80b7ad
commit 6f0ddc2595

View File

@ -93,11 +93,13 @@ where
```javascript ```javascript
let i = 0 let i = 0
is the declaration and initialisation of the control variable (i) // is the declaration and initialisation of the control variable (i)
i < X i < X
is the continuation condition: if the condition is true, then executed the statement in the loop [do_something();], exit the loop when the consition is false //is the continuation condition: if the condition is true, then executed the statement in the loop [do_something();], exit the loop when the consition is false
i++ i++
is the incremental (update) statement that is executed at the end of the loop (i.e. after the loop statement [do_something();] as been executed) //is the incremental (update) statement that is executed at the end of the loop (i.e. after the loop statement [do_something();] as been executed)
``` ```