Skip to content

Commit 3c832f5

Browse files
authored
Merge pull request #372 from brentguf/javascript-specials
JavaScript Specials: Typos and clarification
2 parents a894f82 + 3666e36 commit 3c832f5

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ JavaScript supports the following operators:
132132
Arithmetical
133133
: Regular: `* + - /`, also `%` for the remainder and `**` for power of a number.
134134

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

137137
```js run
138138
alert( '1' + 2 ); // '12', string
@@ -202,7 +202,7 @@ Later we'll study more types of loops to deal with objects.
202202
203203
## The "switch" construct
204204
205-
The "switch" construct can replace multiple `if` checks. It uses `===` for comparisons.
205+
The "switch" construct can replace multiple `if` checks. It uses `===` (strict equality) for comparisons.
206206
207207
For instance:
208208
@@ -248,7 +248,7 @@ We covered three ways to create a function in JavaScript:
248248
}
249249
```
250250
251-
Function expression can have a name, like `sum = function name(a, b)`, but that `name` is only visible inside that function.
251+
Function expressions can have a name, like `sum = function name(a, b)`, but that `name` is only visible inside that function.
252252
253253
3. Arrow functions:
254254

0 commit comments

Comments
 (0)