Skip to content

Commit

Permalink
fix(curriculum): remove semicolon from iteration example (freeCodeCam…
Browse files Browse the repository at this point in the history
  • Loading branch information
shashanknayak12 authored Oct 25, 2024
1 parent d3c579d commit a2eaba1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dashedName: step-36

Your <dfn>iteration</dfn> statement will tell your loop what to do with the iterator after each run.

When you reassign a variable, you can use the variable to reference the previous value before the reassignment. This allows you to do things like add three to an existing number. For example, `bees = bees + 3;` would increase the value of `bees` by three.
When you reassign a variable, you can use the variable to reference the previous value before the reassignment. This allows you to do things like add three to an existing number. For example, `bees = bees + 3` would increase the value of `bees` by three.

Use that syntax to replace your `"iteration"` string with a reassignment statement that increases `i` by one.

Expand Down

0 comments on commit a2eaba1

Please sign in to comment.