Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed javascript example spacing

ZachTRice21317d0d3a5b
diff --git a/doc/style_guide.md b/doc/style_guide.md
index 7cfb27297..569ab96e4 100644
--- a/doc/style_guide.md
+++ b/doc/style_guide.md
@@ -130,17 +130,19 @@ h1,
### JavaScript
* Functions should be pure when possible; pass parameters that are used to return a result
+
```js
function getWordArray(str) {
- return str.split(' ');
+ return str.split(' ');
}
```
* Keep variable declaration at the top of the scope to be a more literal representation of where variables are declared
+
```js
function varDeclare() {
- var all, variables, here;
+ var all, variables, here;
- // then do something with vars
+ // then do something with vars
}
```
* If a variable is a jQuery object use a $ at the start of the variable