This commit is contained in:
Ilya Kantor 2016-07-20 17:28:12 +03:00
parent 31b5af1580
commit 514340ef9c
181 changed files with 1261 additions and 1101 deletions

View file

@ -0,0 +1,21 @@
First, the variable for the name of our planet.
That's simple:
```js
let ourPlanetName = "Earth";
```
Note, we could use a shorter name `planet`, but it might be not obvious what planet it refers to. It's nice to be more verbose. At least until the variable isNotTooLong.
Second, the name of the current visitor:
```js
let currentUserName = "John";
```
Again, we could shorten that to `userName` if we know beyound the reasonable doubt that the user is current.
Modern editors and autocomplete make long variable names easy to write. Don't save on them. Say, a name with 3 words in it is fine.
And if your editor does not have proper autocompletion, get [a new one](/editor).

View file

@ -0,0 +1,8 @@
importance: 3
---
# Giving the right name
1. Create the variable to store the name of our planet. Assign the value `"Earth"` to it. What should be its name?
2. Create the variable to store the name of the current visitor. What about its name?