File tree 1 file changed +2
-3
lines changed
1-js/02-first-steps/04-variables
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Variables
2
2
3
3
Most of the time, a JavaScript application needs to work with information. Here are 2 examples:
4
- 1 . An online-shop -- the information might include goods being sold and a shopping cart.
4
+ 1 . An online-shop -- the information might include goods being sold and a shopping cart.
5
5
2 . A chat application -- the information might include users, messages, and much more.
6
6
7
7
Variables are used to store this information.
@@ -221,14 +221,13 @@ alert(num); // 5
221
221
222
222
That's a bad practice, it gives an error in the strict mode:
223
223
224
- ``` js run untrusted
224
+ ``` js run refresh untrusted
225
225
" use strict" ;
226
226
227
227
* ! *
228
228
num = 5 ; // error: num is not defined
229
229
*/ ! *
230
230
```
231
-
232
231
````
233
232
234
233
## Constants
You can’t perform that action at this time.
0 commit comments