File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ let caught = 5 * 5;
95
95
96
96
{{index "let keyword"}}
97
97
98
- That's a a second kind of ((statement)). The special word
98
+ That's a second kind of ((statement)). The special word
99
99
(_ ((keyword))_ ) ` let ` indicates that this sentence is going to define
100
100
a binding. It is followed by the name of the binding and, if we want
101
101
to immediately give it a value, by an ` = ` operator and an expression.
Original file line number Diff line number Diff line change @@ -599,9 +599,9 @@ console.log(power(2, 3));
599
599
{{index loop, readability, mathematics}}
600
600
601
601
This is rather close to the way mathematicians define exponentiation
602
- and arguably describes the concept in a more clearly way than the
603
- looping variant does. The function calls itself multiple times with
604
- ever smaller exponents to achieve the repeated multiplication.
602
+ and arguably describes the concept more clearly than the looping
603
+ variant does. The function calls itself multiple times with ever
604
+ smaller exponents to achieve the repeated multiplication.
605
605
606
606
{{index [ function, application] , efficiency}}
607
607
Original file line number Diff line number Diff line change @@ -334,8 +334,9 @@ through it but is not its _own_ prototype.
334
334
## Class notation
335
335
336
336
So JavaScript ((class))es are ((constructor)) functions with a
337
- ((prototype)) property. That how they work, and until 2015, that's how
338
- you had to write them. These days, we have a less awkward notation.
337
+ ((prototype)) property. That is how they work, and until 2015, that
338
+ was how you had to write them. These days, we have a less awkward
339
+ notation.
339
340
340
341
``` {includeCode: true}
341
342
class Rabbit {
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ to use (its _((interface))_).
60
60
{{index "big ball of mud"}}
61
61
62
62
Module interfaces have a lot in common with object interfaces, as we
63
- saw them in [ Chapter ?] ( objects #interface) . They make part of the
63
+ saw them in [ Chapter ?] ( object #interface) . They make part of the
64
64
module available to the outside world, and keep the rest private. By
65
65
restricting the ways in which modules interact with each other, the
66
66
system becomes more like ((Lego)), where pieces interact through
You can’t perform that action at this time.
0 commit comments