mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
Removed reference to interpolation.
Javascript doesn't have string interpolation.
This commit is contained in:
18
README.md
18
README.md
@@ -135,7 +135,7 @@
|
||||
|
||||
## <a name='strings'>Strings</a>
|
||||
|
||||
- Use single quotes `''` for plain strings
|
||||
- Use single quotes `''` for strings
|
||||
|
||||
```javascript
|
||||
// bad
|
||||
@@ -145,22 +145,6 @@
|
||||
var name = 'Bob Parr';
|
||||
```
|
||||
|
||||
- Use double quotes `""` for strings that contain interpolated values
|
||||
|
||||
```javascript
|
||||
// bad
|
||||
var fullName = "Bob" + this.lastName;
|
||||
|
||||
// good
|
||||
var fullName = 'Bob' + this.lastName;
|
||||
|
||||
// bad
|
||||
var fullName = 'Bob #{lastName}';
|
||||
|
||||
// good
|
||||
var fullName = "Bob #{lastName}";
|
||||
```
|
||||
|
||||
- String longer than 80 characters should be written across Multiple lines using string concatenation.
|
||||
|
||||
```javascript
|
||||
|
||||
Reference in New Issue
Block a user