Skip to content

Commit 3666e36

Browse files
authored
Typos and clarification
1 parent 6109448 commit 3666e36

File tree

1 file changed

+3
-3
lines changed
  • 1-js/02-first-steps/16-javascript-specials

1 file changed

+3
-3
lines changed

1-js/02-first-steps/16-javascript-specials/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ JavaScript supports the following operators:
134134
Arithmetical
135135
: Regular: `* + - /`, also `%` for the remainder and `**` for power of a number.
136136

137-
Binary plus `+` concatenates strings. And if any of the operands is a string, the other one is converted to string too:
137+
The binary plus `+` concatenates strings. And if any of the operands is a string, the other one is converted to string too:
138138

139139
```js run
140140
alert( '1' + 2 ); // '12', string
@@ -204,7 +204,7 @@ Later we'll study more types of loops to deal with objects.
204204
205205
## The "switch" construct
206206
207-
The "switch" construct can replace multiple `if` checks. It uses `===` for comparisons.
207+
The "switch" construct can replace multiple `if` checks. It uses `===` (strict equality) for comparisons.
208208
209209
For instance:
210210
@@ -250,7 +250,7 @@ We covered three ways to create a function in JavaScript:
250250
}
251251
```
252252
253-
Function expression can have a name, like `sum = function name(a, b)`, but that `name` is only visible inside that function.
253+
Function expressions can have a name, like `sum = function name(a, b)`, but that `name` is only visible inside that function.
254254
255255
3. Arrow functions:
256256

0 commit comments

Comments
 (0)