mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
adds space to string example
This commit is contained in:
@@ -173,10 +173,10 @@
|
||||
var name = 'Bob Parr';
|
||||
|
||||
// bad
|
||||
var fullName = "Bob" + this.lastName;
|
||||
var fullName = "Bob " + this.lastName;
|
||||
|
||||
// good
|
||||
var fullName = 'Bob' + this.lastName;
|
||||
var fullName = 'Bob ' + this.lastName;
|
||||
```
|
||||
|
||||
- Strings longer than 80 characters should be written across multiple lines using string concatenation.
|
||||
|
||||
Reference in New Issue
Block a user