importance: 4
Examinează următorul cod:
const birthday = '18.04.1982';
const age = someCode(birthday);
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
.
035c5267ba80fa7b55878f7213cbde449b4092d9
age
este calculată din birthday
folosind someCode()
, ceea ce înseamnă un apel de funcție pe care nu l-am explicat încă (o vom face în curând!), dar detaliile nu contează aici, ideea este că age
este calculată cumva pe baza birthday
.
Ar fi corect să folosim majuscule pentru birthday
? Pentru age
? Sau chiar pentru ambele?
<<<<<<< HEAD
const BIRTHDAY = '18.04.1982'; // facem BIRTHDAY cu majuscule?
const AGE = someCode(BIRTHDAY); // facem AGE cu majuscule?
=======
const BIRTHDAY = '18.04.1982'; // make birthday uppercase?
const AGE = someCode(BIRTHDAY); // make age uppercase?
>>>>>>> 035c5267ba80fa7b55878f7213cbde449b4092d9