Skip to content

Commit 68796df

Browse files
committed
Integrate proofreading for Chapter 2
1 parent 70a3a40 commit 68796df

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

02_program_structure.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ____
1616
(((why)))(((Poignant Guide)))In this chapter, we will start to do
1717
things that can actually be called _programming_. We will expand our
1818
command of the JavaScript language beyond the nouns and sentence
19-
fragments we've seen so far, to the point where we can actually
19+
fragments we've seen so far, to the point where we can
2020
express some meaningful prose.
2121

2222
== Expressions and statements ==
@@ -312,7 +312,7 @@ write your own functions.
312312

313313
(((dialog box)))(((input)))(((browser)))(((confirm function)))Browser
314314
environments contain other functions besides `alert` for popping up
315-
windows. You can ask the user an “OK”/“Cancel question using
315+
windows. You can ask the user an OK/Cancel question using
316316
`confirm`. This returns a Boolean: `true` if the user clicks OK and
317317
`false` if the user clicks Cancel.
318318

@@ -647,7 +647,7 @@ console.log(current);
647647
// → 21
648648
----
649649

650-
(((remainder operator)))(((% operator)))The trick with the remainder
650+
(((remainder operator)))(((% operator)))Using the remainder
651651
(`%`) operator is an easy way to test whether a number is divisible by
652652
another number. If it is, the remainder of their division is zero.
653653

@@ -672,7 +672,7 @@ endif::interactive_target[]
672672

673673
(((continue keyword)))The `continue` keyword is similar to `break`, in
674674
that it influences the progress of a loop. When `continue` is
675-
encountered in a loop body, control jumps out of the body, and
675+
encountered in a loop body, control jumps out of the body and
676676
continues with the loop's next iteration.
677677

678678
== Updating variables succinctly ==
@@ -864,7 +864,7 @@ a function call is an expression, and may produce a value.
864864
== Exercises ==
865865

866866
(((exercises)))If you are unsure how to try your solutions to
867-
exercises, refer to the end of the introduction.
867+
exercises, refer to the link:00_into.html#intro[introduction].
868868

869869
Each exercise starts with a problem description. Read that and try to
870870
solve the exercise. If you run into problems, consider reading the
@@ -918,7 +918,7 @@ endif::interactive_target[]
918918
(((triangle (exercise))))You can start with a program that simply
919919
prints out the numbers 1 to 7, which you can derive by making a few
920920
modifications to the
921-
link:02_program_structure.html#loops[even-number-printing example]
921+
link:02_program_structure.html#loops[even number printing example]
922922
given earlier in the chapter, where the `for` loop was introduced.
923923

924924
Now consider the equivalence between numbers and strings of hash

0 commit comments

Comments
 (0)