en.javascript.info/1-js/02-first-steps/04-variables/3-uppercast-constant/task.md
Ilya Kantor 9ad9063d00 up
2016-11-28 21:35:42 +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?