Removed reference to interpolation.

Javascript doesn't have string interpolation.
This commit is contained in:
Matt Baker
2012-11-01 16:35:37 -07:00
parent cab510342f
commit ca0f5ff807

View File

@@ -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