mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-11-02 11:11:41 +08:00
Fix incorrect syntax
This commit is contained in:
20
README.md
20
README.md
@ -284,20 +284,16 @@
|
|||||||
### Code Example ###
|
### Code Example ###
|
||||||
```javascript
|
```javascript
|
||||||
// for class name we use UpperCamelCase
|
// for class name we use UpperCamelCase
|
||||||
class SomeClassExample {
|
class SomeClassExample {}
|
||||||
|
|
||||||
// for const names we use the const keyword and lowerCamelCase
|
// for const names we use the const keyword and lowerCamelCase
|
||||||
const config = {
|
const config = {
|
||||||
key: 'value'
|
key: 'value'
|
||||||
};
|
};
|
||||||
|
|
||||||
// for variables and functions names we use lowerCamelCase
|
|
||||||
let someVariableExample = 'value';
|
|
||||||
function doSomething() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
// for variables and functions names we use lowerCamelCase
|
||||||
|
let someVariableExample = 'value';
|
||||||
|
function doSomething() {}
|
||||||
```
|
```
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|||||||
Reference in New Issue
Block a user