Skip to content

Commit e255f51

Browse files
SleeplessBytekotp
andauthored
Apply suggestions from code review
Co-authored-by: Victor Goff <[email protected]>
1 parent 13e1eea commit e255f51

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

concepts/strings/about.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can find all the methods in the [MDN docs][mdn-docs].
3131

3232
## String interpolation
3333

34-
Strings in JavaScript support interpolation using [string template literals][mdn-template-strings].
34+
Strings in JavaScript support concatenation using [`+` and slight variations][https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#long_literal_strings] and interpolation using [string template literals][mdn-template-strings].
3535

3636
```javascript
3737
const NUMBER_OF_CATS = 4;
@@ -44,7 +44,4 @@ const interpolation = `I have ${NUMBER_OF_CATS} cats`;
4444

4545
[mdn-docs]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#Instance_methods
4646
[mdn-template-strings]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
47-
48-
```
49-
50-
```
47+
[mdn-concatenation]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#long_literal_strings

exercises/concept/poetry-club-door-policy/.docs/hints.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77

88
## 2. Capitalize a word
99

10-
- Capitalization means having a single Uppercase character, followed by lowercase characters.
11-
- There are two methods to take a part of a string (for example, everything except the first character).
10+
- Capitalization means having a single _Uppercase_ character, followed by _lowercase_ characters.
11+
- There are two methods to take a portion of a string (for example, everything except the first character).
1212
- `.slice(position)` can slice up a string at a position.
1313

1414
## 3. Get the last letter of a sentence
1515

16-
- This is similar to getting the first letter, except that it might be preferable to use the number of characters in the string to find the position
17-
of the last character.
16+
- This is similar to getting the first letter, except that it might be preferable to use the number of characters in the string to find the position of the last character.
1817
- The number of characters in a string is given by its `.length` property.
1918

2019
## 4. Trim a sentence

0 commit comments

Comments
 (0)