Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Goff <keeperotphones@gmail.com>
  • Loading branch information
SleeplessByte and kotp authored Apr 2, 2021
1 parent 13e1eea commit e255f51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
7 changes: 2 additions & 5 deletions concepts/strings/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ You can find all the methods in the [MDN docs][mdn-docs].

## String interpolation

Strings in JavaScript support interpolation using [string template literals][mdn-template-strings].
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].

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

[mdn-docs]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#Instance_methods
[mdn-template-strings]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

```
```
[mdn-concatenation]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#long_literal_strings
7 changes: 3 additions & 4 deletions exercises/concept/poetry-club-door-policy/.docs/hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@

## 2. Capitalize a word

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

## 3. Get the last letter of a sentence

- 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.
- 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.
- The number of characters in a string is given by its `.length` property.

## 4. Trim a sentence
Expand Down

0 comments on commit e255f51

Please sign in to comment.