You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -947,11 +947,11 @@
947
947
<a name="strings--quotes"></a><a name="6.1"></a>
948
948
- [6.1](#strings--quotes) Use double quotes `""` for strings instead of single quotes `''`. eslint: [`quotes`](https://eslint.org/docs/rules/quotes.html)
949
949
950
-
> Why? While other Styleguides may enforce single quotes, they mostly do it because of consistency. Here are some reasons for using double quotes: <br>
950
+
> Why? While other Styleguides may enforce single quotes, they mostly do it because of consistency (in favor of older projects). Here are some reasons for using double quotes: <br>
951
951
> - Double quotes eliminate the need to escape apostrophes: `"I'm"` vs `'I\'m'`.
952
952
> - From a linguistic point of view, double quotes identify a passage of quoted text while single quotes are commonly used as a contraction.
953
953
> - Double quotes are used to define strings in many other languages. Single quotes are used to define `char`'s in some.
954
-
> - JSON notation is written with double quotes as well.
954
+
> - JSON Strings are only valid with double quotes.
0 commit comments