mirror of
https://github.com/Stone-Red-Code/naming-convention.git
synced 2026-09-09 23:43:52 +02:00
Update and rename JavaScript Coding Conventions to JavaScript Name and Coding Conventions
fix some typos
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
| Local variables | CamelCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No |
|
| Local variables | CamelCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No |
|
||||||
| Constants name | PascalCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No |
|
| Constants name | PascalCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No |
|
||||||
| Field name | CamelCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No |
|
| Field name | CamelCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No |
|
||||||
|
|
||||||
***
|
***
|
||||||
Coding conventions are style guidelines for programming. They typically cover:
|
Coding conventions are style guidelines for programming. They typically cover:
|
||||||
|
|
||||||
@@ -26,7 +27,8 @@ Always use the same naming convention for all your code. For example:
|
|||||||
4. Do not use under_scores in variable, constants, function arguments or function names;
|
4. Do not use under_scores in variable, constants, function arguments or function names;
|
||||||
5. Do not use hyphens in JavaScript names.
|
5. Do not use hyphens in JavaScript names.
|
||||||
***
|
***
|
||||||
#### Naming Conventions
|
|
||||||
|
## Naming Conventions
|
||||||
|
|
||||||
Do use PascalCasing for function names:
|
Do use PascalCasing for function names:
|
||||||
|
|
||||||
Reference in New Issue
Block a user