Changes
Page history
Update Javascript coding guidelines
authored
Nov 03, 2021
by
Moreau Nicolas
Show whitespace changes
Inline
Side-by-side
Javascript-coding-guidelines.md
View page @
bf77979c
...
...
@@ -12,15 +12,17 @@ For JavaScript we use expanded syntax, with each line of JS on a new line, the o
Do this :
`
function myFunc() {`
`
console.log('Hello!');
`
`
};
`
`
``
javascript
function
myFunc
()
{
console
.
log
(
'
Hello!
'
);
};
`
`
`
Not this :
`function myFunc() { console.log('Hello!'); };`
```
javascript
function
myFunc
()
{
console
.
log
(
'
Hello!
'
);
};
```
You should include spaces between operators and operands, parameters, etc...
...
...
...
...