You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/04-variables/article.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@ It may be interesting to know that there also exist [functional](https://en.wiki
141
141
142
142
In such languages, once the value is stored "in the box" -- it's there forever. If we need to store something else -- the language forces to create a new box (declare a new variable), we can't reuse the old one.
143
143
144
-
Though it may seem a little bit odd at the first sight, these languages are quite capable of serious development. More than that, there are areas like parallel computations where this limitation infers certain benefits. Studying of such a language (even if not planning to use it soon) is recommended to broaden the mind.
144
+
Though it may seem a little bit odd at first sight, these languages are quite capable of serious development. More than that, there are areas like parallel computations where this limitation infers certain benefits. Studying of such a language (even if not planning to use it soon) is recommended to broaden the mind.
145
145
```
146
146
147
147
## Variable naming [#variable-naming]
@@ -277,7 +277,7 @@ Benefits:
277
277
278
278
When should we use capitals for a constant, and when -- name them normally? Let's make that clear.
279
279
280
-
Being a "constant" just means that the value never changes. But there are constants that are known prior to execution (like a hexadimal value for red), and there are those that are *calculated* in run-time, during the execution, but do not change after the assignment.
280
+
Being a "constant" just means that the value never changes. But there are constants that are known prior to execution (like a hexadecimal value for red), and there are those that are *calculated* in run-time, during the execution, but do not change after the assignment.
281
281
282
282
For instance:
283
283
```js
@@ -290,7 +290,7 @@ In other words, capital-named constants are only used as aliases for "hard-coded
290
290
291
291
## Name things right
292
292
293
-
Talking about variables, there's one more exteremely important thing.
293
+
Talking about variables, there's one more extremely important thing.
294
294
295
295
Please name the variables sensibly. Take time to think if needed.
0 commit comments