@@ -207,7 +207,7 @@ console.log(mack);
207207
208208(((Array type)))(((array,methods)))(((push method)))(((pop
209209method)))(((join method)))The `push` method can be used to add values
210- to the end of an array. The `pop` method does the opposite: It removes
210+ to the end of an array. The `pop` method does the opposite: it removes
211211the value at the end of the array and returns it. An array of strings
212212can be flattened to a single string with the `join` method. The
213213argument given to `join` determines the text that is glued between the
@@ -582,7 +582,7 @@ should we store these correlations once we compute them?
582582One possible way is to
583583store all the correlations in an array, using objects with `name` and
584584`value` properties. But that makes looking up the correlation for a given
585- event somewhat cumbersome: You 'd have to loop over the whole array
585+ event somewhat cumbersome: you 'd have to loop over the whole array
586586to find the object with the right `name`. We could wrap this lookup process
587587in a function, but we would still be writing more code, and the
588588computer would be doing more work, than necessary.
@@ -1175,7 +1175,7 @@ this exercise, write two functions, `reverseArray` and
11751175`reverseArrayInPlace`. The first, `reverseArray`, takes an array as
11761176argument and produces a _new_ array that has the same elements in the
11771177inverse order. The second, `reverseArrayInPlace` does what the
1178- `reverse` method does: It modifies the array given as argument in order
1178+ `reverse` method does: it modifies the array given as argument in order
11791179to reverse its elements.
11801180
11811181Thinking back to the notes about side effects and pure functions in
@@ -1335,7 +1335,7 @@ whose values are also equal when compared with a recursive call to
13351335To find out whether to compare two things by identity (use the “===”
13361336operator for that) or by looking at their properties, you can use the `typeof` operator.
13371337If it produces `"object"` for both values, you should do a deep comparison. But
1338- you have to take one silly exception into account: By a
1338+ you have to take one silly exception into account: by a
13391339historical accident, `typeof null` also produces `"object"`.
13401340
13411341ifdef::html_target[]
0 commit comments