Skip to content

Commit

Permalink
Merge pull request #32 from daltonmenezes/patch-1
Browse files Browse the repository at this point in the history
Fix 'backslash in front of the apostrophe' example
  • Loading branch information
iteles authored May 17, 2018
2 parents 38e0ecd + bee8ae3 commit 29aa537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ Single quotes are often used to define a String in JavaScript, but if a person's
(and the developer does not know the difference between an apostrophe and single quote) it is useful to "escape"
the apostrophe character:

´´´
```javascript
var name = 'Patrick O\'Brian'; // using a backslash in front of the apostrophe
console.log('name:', name); // name: Patrick O'Brian
´´´
```

further reading: https://webdesignledger.com/common-typography-mistakes-apostrophes-versus-quotation-marks

Expand Down

0 comments on commit 29aa537

Please sign in to comment.