adds space to string example

This commit is contained in:
tcme
2012-12-03 08:45:19 +01:00
parent fa98b403e7
commit 49984d70ca

View File

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