Variable Definition Rules and Standards
Variable Definition Rules and Standards
There are certain rules to ensure the system works smoothly when defining variables, and in addition, there are some definition standards developed so that we do not get confused or forget previously defined variables. Let's take a look at these together.Variable Definition Rules
- All the letters of the English alphabet, both uppercase and lowercase, 26 in total. (A-Z,a,z)
- The digits between 0 and 9, including 0 and 9.
- Only the underscore "_" can be used as a symbol.
- Variables can start with a letter or an underscore but cannot start with a digit.
- Variables cannot take the command or keyword of the respective language as a name.
Variable Definition Standards
PascalCase: The first letters of words are uppercase, other letters are lowercase. For example; PascalCase, TelNo
camelCase: All except the first word start with an uppercase letter. For example; camelCase, telNo
UPPERCASE: All letters are written in uppercase. For example; UPPERCASE, TELNO
Under_Score_Case: Words are written with underscores between them. For example; Under_Score_Case, Tel_No



Yorum Gönder