mirror of
https://github.com/Stone-Red-Code/naming-convention.git
synced 2026-09-08 23:43:52 +02:00
Update JavaScript Coding Conventions
fix some typos
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
# JavaScript Coding Conventions
|
# JavaScript Coding Conventions
|
||||||
|
|
||||||
| Object Name | Notation | Length | Plural | Prefix | Suffix | Abbreviation | Char Mask |Underscores |
|
| Object Name | Notation | Length | Plural | Prefix | Suffix | Abbreviation | Char Mask | Underscores |
|
||||||
| ------------------------- | ---------- | ------ | ------ | ------ | ------ | ------------ | -------------------|-------------|
|
|--------------------|------------|--------|--------|--------|--------|--------------|------------|-------------|
|
||||||
| Function name | PascalCase | 50 | Yes | No | Yes | Yes | [A-z][0-9] | No |
|
| Function name | PascalCase | 50 | Yes | No | Yes | Yes | [A-z][0-9] | No |
|
||||||
| Function arguments | CamelCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No |
|
| Function arguments | CamelCase | 50 | Yes | No | No | Yes | [A-z][0-9] | No |
|
||||||
| 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:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user