Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b4bbee6

Browse files
committed
closes #3168
1 parent 588e213 commit b4bbee6

File tree

1 file changed

+5
-4
lines changed
  • 1-js/02-first-steps/04-variables/3-uppercast-constant

1 file changed

+5
-4
lines changed

‎1-js/02-first-steps/04-variables/3-uppercast-constant/task.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ const birthday = '18.04.1982';
1212
const age = someCode(birthday);
1313
```
1414

15-
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).
15+
Here we have a constant `birthday` for the date, and also the `age` constant.
16+
17+
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`.
1618

1719
Would it be right to use upper case for `birthday`? For `age`? Or even for both?
1820

1921
```js
20-
const BIRTHDAY = '18.04.1982'; // make uppercase?
22+
const BIRTHDAY = '18.04.1982'; // make birthday uppercase?
2123

22-
const AGE = someCode(BIRTHDAY); // make uppercase?
24+
const AGE = someCode(BIRTHDAY); // make age uppercase?
2325
```
24-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /