Skip to content

Commit fdb406a

Browse files
committed
Consistent use of declare / define in Variables problem
Clean up the language to be more consistent for non-programmers here, and explain the formal version before introducing the colloquial version.
1 parent be4bb0c commit fdb406a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

problems/variables/problem.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@
22

33
# VARIABLES
44

5-
A variable is a reference to a value. Define a variable using the `var` keyword.
5+
A variable is a name that can reference a specific value. Variables are declared using `var` followed by the variable's name.
66

77
Here's an example:
88

99
```js
1010
var example;
1111
```
1212

13-
The above variable is **declared**, but it isn't defined.
13+
The above variable is **declared**, but it isn't defined (it does not yet reference a specific value).
1414

1515
Here's an example of defining a variable, making it reference a specific value:
1616

1717
```js
1818
var example = 'some string';
1919
```
2020

21-
Note that it starts with the `var` keyword and uses the equals sign between the variable name and the value that it references.
21+
Note that it is **declared** using `var` and uses the equals sign to **define** the value that it references. This is colloquially known as "Making a variable equal a value".
2222

2323
Create a file named `variables.js`.
2424

25-
In that file create a variable named `example`.
25+
In that file declare a variable named `example`.
2626

27-
**Make the `example` variable reference the value `some string`.**
27+
**Make the variable `example` equal to the value `'some string'`.**
2828

2929
Then use `console.log()` to print the `example` variable to the console.
3030

0 commit comments

Comments
 (0)