closes #3168
This commit is contained in:
parent
588e213f3c
commit
b4bbee6549
1 changed files with 5 additions and 4 deletions
|
@ -12,13 +12,14 @@ const birthday = '18.04.1982';
|
|||
const age = someCode(birthday);
|
||||
```
|
||||
|
||||
Here we have a constant `birthday` date and the `age` is calculated from `birthday` with the help of some code (it is not provided for shortness, and because details don't matter here).
|
||||
Here we have a constant `birthday` for the date, and also the `age` constant.
|
||||
|
||||
The `age` is calculated from `birthday` using `someCode()`, which means a function call that we didn't explain yet (we will soon!), but the details don't matter here, the point is that `age` is calculated somehow based on the `birthday`.
|
||||
|
||||
Would it be right to use upper case for `birthday`? For `age`? Or even for both?
|
||||
|
||||
```js
|
||||
const BIRTHDAY = '18.04.1982'; // make uppercase?
|
||||
const BIRTHDAY = '18.04.1982'; // make birthday uppercase?
|
||||
|
||||
const AGE = someCode(BIRTHDAY); // make uppercase?
|
||||
const AGE = someCode(BIRTHDAY); // make age uppercase?
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue