mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-10-30 09:05:43 +08:00
code example
This commit is contained in:
@ -265,7 +265,7 @@ Text here...
|
||||
### Code Example ###
|
||||
```javascript
|
||||
// for class name we use UpperCamelCase
|
||||
class SomeClass () {
|
||||
class SomeClassExample () {
|
||||
|
||||
// for const name we use UPPERCASE
|
||||
const CONFIG = {
|
||||
@ -273,7 +273,7 @@ Text here...
|
||||
};
|
||||
|
||||
// for variables and functions names we use lowerCamelCase
|
||||
let someVariable = 'value';
|
||||
let someVariableExample = 'value';
|
||||
function doSomething() {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user