Skip to content

Commit ea1f414

Browse files
committed
Italicize a variable name in chapter 3
1 parent 7a59f40 commit ea1f414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

03_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ hint}}
730730

731731
{{index "bean counting (exercise)", [string, indexing], "zero-based counting", ["length property", "for string"]}}
732732

733-
You can get the Nth character, or letter, from a string by writing `[N]` after the string (for example, `string[2]`). The resulting value will be a string containing only one character (for example, `"b"`). The first character has position 0, which causes the last one to be found at position `string.length - 1`. In other words, a two-character string has length 2, and its characters have positions 0 and 1.
733+
You can get the *N*th character, or letter, from a string by writing `[N]` after the string (for example, `string[2]`). The resulting value will be a string containing only one character (for example, `"b"`). The first character has position 0, which causes the last one to be found at position `string.length - 1`. In other words, a two-character string has length 2, and its characters have positions 0 and 1.
734734

735735
Write a function `countBs` that takes a string as its only argument and returns a number that indicates how many uppercase B characters there are in the string.
736736

0 commit comments

Comments
 (0)