From 3666e368735bd6173deac6a180d9985dd8223710 Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Fri, 19 Jan 2018 09:28:26 +0100 Subject: [PATCH] Typos and clarification --- 1-js/02-first-steps/16-javascript-specials/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/1-js/02-first-steps/16-javascript-specials/article.md b/1-js/02-first-steps/16-javascript-specials/article.md index da771b4c..8a6c5163 100644 --- a/1-js/02-first-steps/16-javascript-specials/article.md +++ b/1-js/02-first-steps/16-javascript-specials/article.md @@ -134,7 +134,7 @@ JavaScript supports the following operators: Arithmetical : Regular: `* + - /`, also `%` for the remainder and `**` for power of a number. - Binary plus `+` concatenates strings. And if any of the operands is a string, the other one is converted to string too: + The binary plus `+` concatenates strings. And if any of the operands is a string, the other one is converted to string too: ```js run alert( '1' + 2 ); // '12', string @@ -204,7 +204,7 @@ Later we'll study more types of loops to deal with objects. ## The "switch" construct -The "switch" construct can replace multiple `if` checks. It uses `===` for comparisons. +The "switch" construct can replace multiple `if` checks. It uses `===` (strict equality) for comparisons. For instance: @@ -250,7 +250,7 @@ We covered three ways to create a function in JavaScript: } ``` - Function expression can have a name, like `sum = function name(a, b)`, but that `name` is only visible inside that function. + Function expressions can have a name, like `sum = function name(a, b)`, but that `name` is only visible inside that function. 3. Arrow functions: