en.javascript.info/1-js/01-getting-started/03-variables/3-uppercast-constant/task.md
Ilya Kantor 06cdd5b84a taskui
2020-11-21 20:38:22 +03:00

526 B

importance: 4


Uppercase const?

Examine the following code:

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).

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

const BIRTHDAY = '18.04.1982'; // make uppercase?

const AGE = someCode(BIRTHDAY); // make uppercase?