From 8b141759903a913c1260f69fa1f96466313c02c6 Mon Sep 17 00:00:00 2001 From: kitiya Date: Sat, 2 Sep 2017 19:14:21 -0600 Subject: [PATCH 1/3] Update solution.md --- .../08-comparison/1-comparison-questions/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/08-comparison/1-comparison-questions/solution.md b/1-js/02-first-steps/08-comparison/1-comparison-questions/solution.md index e1f50ce1..5c8bd2bc 100644 --- a/1-js/02-first-steps/08-comparison/1-comparison-questions/solution.md +++ b/1-js/02-first-steps/08-comparison/1-comparison-questions/solution.md @@ -13,7 +13,7 @@ null === +"\n0\n" → false Some of the reasons: 1. Obviously, true. -2. Dictionary comparison, hence true. +2. Dictionary comparison, hence false. 3. Again, dictionary comparison, first char of `"2"` is greater than the first char of `"1"`. 4. Values `null` and `undefined` equal each other only. 5. Strict equality is strict. Different types from both sides lead to false. From c6e1e781933521e456ea9f2a85cbead69efe7fd1 Mon Sep 17 00:00:00 2001 From: kitiya Date: Fri, 8 Sep 2017 13:09:17 -0600 Subject: [PATCH 2/3] adding a back-tick ( ` ) Adding a back-tick to correct code highlighter --- .../05-array-methods/3-filter-range-in-place/task.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/05-array-methods/3-filter-range-in-place/task.md b/1-js/05-data-types/05-array-methods/3-filter-range-in-place/task.md index a737a525..7066a51a 100644 --- a/1-js/05-data-types/05-array-methods/3-filter-range-in-place/task.md +++ b/1-js/05-data-types/05-array-methods/3-filter-range-in-place/task.md @@ -4,7 +4,7 @@ importance: 4 # Filter range "in place" -Write a function `filterRangeInPlace(arr, a, b)` that gets an array `arr` and removes from it all values except those that are between `a` and `b. The test is: `a ≤ arr[i] ≤ b`. +Write a function `filterRangeInPlace(arr, a, b)` that gets an array `arr` and removes from it all values except those that are between `a` and `b`. The test is: `a ≤ arr[i] ≤ b`. The function should only modify the array. It should not return anything. From f30b0cb514c1757d6caad56393ae187ff266a453 Mon Sep 17 00:00:00 2001 From: kitiya Date: Fri, 8 Sep 2017 17:37:06 -0600 Subject: [PATCH 3/3] Update solution.md Change arr to users to match the parameter name --- 1-js/05-data-types/05-array-methods/10-average-age/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/05-array-methods/10-average-age/solution.md b/1-js/05-data-types/05-array-methods/10-average-age/solution.md index 87bb3a94..5e19fb5a 100644 --- a/1-js/05-data-types/05-array-methods/10-average-age/solution.md +++ b/1-js/05-data-types/05-array-methods/10-average-age/solution.md @@ -1,6 +1,6 @@ ```js run function getAverageAge(users) { - return arr.reduce((prev, user) => prev + user.age, 0) / arr.length; + return users.reduce((prev, user) => prev + user.age, 0) / users.length; } let john = { name: "John", age: 25 }