Skip to content

This fixes a bunch of typos throughout 15 of the pages. #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
falsey -> falsy
  • Loading branch information
Markus Amalthea Magnuson committed Feb 22, 2013
commit c3c79dda061976865793cc8a54eb1dffb8a7687d
2 changes: 1 addition & 1 deletion page/javascript-101/loops.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ for ( [initialisation]; [conditional]; [iteration] ) {

The _initialisation_ statement is executed only once, before the loop starts. It gives you an opportunity to prepare or declare any variables.

The _conditional_ statement is executed before each iteration, and its return value decides whether the loop is to continue. If the conditional statement evaluates to a falsey value, then the loop stops.
The _conditional_ statement is executed before each iteration, and its return value decides whether the loop is to continue. If the conditional statement evaluates to a falsy value, then the loop stops.

The _iteration_ statement is executed at the end of each iteration and gives you an opportunity to change the state of important variables. Typically, this will involve incrementing or decrementing a counter and thus bringing the loop closer to its end.

Expand Down