Update Javascript coding guidelines authored by Moreau Nicolas's avatar Moreau Nicolas
...@@ -12,15 +12,17 @@ For JavaScript we use expanded syntax, with each line of JS on a new line, the o ...@@ -12,15 +12,17 @@ For JavaScript we use expanded syntax, with each line of JS on a new line, the o
Do this : Do this :
`function myFunc() {` ```javascript
function myFunc() {
`console.log('Hello!');` console.log('Hello!');
};
`};` ```
Not this : Not this :
`function myFunc() { console.log('Hello!'); };` ```javascript
function myFunc() { console.log('Hello!'); };
```
You should include spaces between operators and operands, parameters, etc... You should include spaces between operators and operands, parameters, etc...
... ...
......