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