mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-23 21:04:36 -05:00
fix(curriculum): correct 'less then' → 'less than' typo in loop explanation (#63871)
This commit is contained in:
@@ -24,7 +24,7 @@ for (let i = 0; i < 10; i++) {
|
||||
|
||||
:::
|
||||
|
||||
In the example above, the loop starts counting at `0` and while `i` is less then `10`, the loop will continue to run.
|
||||
In the example above, the loop starts counting at `0` and while `i` is less than `10`, the loop will continue to run.
|
||||
|
||||
Inside the loop, we check if `i` is equal to `5`. If it is, we use the `break` statement to exit the loop early. If not, we log the value of `i` to the console. So the output of the code will print the numbers `0`, `1`, `2`, `3`, and `4`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user