Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.09 KB

File metadata and controls

35 lines (24 loc) · 1.09 KB

importance: 4


Const maiúsculo?

Examine o seguinte código:

const birthday = '18.04.1982';

const age = someCode(birthday);

<<<<<<< HEAD Aqui temos uma constante birthday e a age que é calculada apartir de birthday com a ajuda de algum código (não é fornecido por falta de tempo, e porque os detalhes não importam aqui).

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.

540d753e90789205fc6e75c502f68382c87dea9b

Seria correcto utilizar maiúsculas para birthday? Para age? Ou mesmo para ambos?

<<<<<<< HEAD
const BIRTHDAY = '18.04.1982'; // fazer maiúsculas?

const AGE = someCode(BIRTHDAY); // fazer maiúsculas?
=======
const BIRTHDAY = '18.04.1982'; // make birthday uppercase?

const AGE = someCode(BIRTHDAY); // make age uppercase?
>>>>>>> 540d753e90789205fc6e75c502f68382c87dea9b