@@ -484,11 +484,11 @@ console.log(power(2, 6));
484484
485485{{index "console.log"}}
486486
487- In the [ next chapter] ( 04_data.html#arguments_object ) , we will see a
488- way in which a function body can get at the exact list of arguments
489- that were passed. This is helpful because it makes it possible for a
490- function to accept any number of arguments. For example, ` console.log `
491- makes use of this—it outputs all of the values it is given.
487+ In the [ next chapter] ( 04_data.html#rest_parameters ) , we will see a way
488+ in which a function body can get at the whole list of arguments it was
489+ passed. This is helpful because it makes it possible for a function to
490+ accept any number of arguments. For example, ` console.log ` makes use
491+ of this—it outputs all of the values it is given.
492492
493493```
494494console.log("C", "O", 2);
@@ -1055,11 +1055,10 @@ hint}}
10551055
10561056### Bean counting
10571057
1058- {{index "bean counting (exercise)", "charAt method", [ string, indexing] , "zero-based counting"}}
1058+ {{index "bean counting (exercise)", [ string, indexing] , "zero-based counting"}}
10591059
10601060You can get the Nth character, or letter, from a string by writing
1061- ` "string".charAt(N) ` , similar to how you get its length with
1062- ` "s".length ` . The returned value will be a string containing only one
1061+ ` "string"[N] ` . The returned value will be a string containing only one
10631062character (for example, ` "b" ` ). The first character has position zero,
10641063which causes the last one to be found at position ` string.length - 1 ` .
10651064In other words, a two-character string has length 2, and its
0 commit comments