Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions 1-js/02-first-steps/04-variables/3-uppercast-constant/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ importance: 4

---

# Uppercase const?
# Mayusculas const?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¿const en mayúsculas?


Examine the following code:
Examina el siguiente codigo:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examina el siguiente código:


```js
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).
Aqui tenemos una constante `birthday` y `age` es calculada desde `birthday` con la ayuda de cierto codigo (no esta provisto para abreviacion, y porque los detalles no importan aqui).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aquí tenemos una constante birthday y age es calculada desde birthday con la ayuda de cierto código (no está provisto para abreviación, y porque los detalles no importan aquí).


Would it be right to use upper case for `birthday`? For `age`? Or even for both?
Seria correcto usar mayusculas para `birthday`? Para `age`? O incluso para ambos?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

¿Sería correcto usar mayúsculas para birthday? ¿Para age? ¿O incluso para ambos?


```js
const BIRTHDAY = '18.04.1982'; // make uppercase?
Expand Down