From ab4367a751ac75ca42fea9a8dd2211adab9dd273 Mon Sep 17 00:00:00 2001 From: Pepijnk12 <33691272+Pepijnk12@users.noreply.github.com> Date: Mon, 4 Feb 2019 11:34:47 +0100 Subject: [PATCH] Update URL for 404 error (#35042) * Update URL for 404 error * fix: correct url --- .../returning-boolean-values-from-functions.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/returning-boolean-values-from-functions.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/returning-boolean-values-from-functions.english.md index e7b401d71d..3fb2b4667a 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/returning-boolean-values-from-functions.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/returning-boolean-values-from-functions.english.md @@ -6,7 +6,7 @@ challengeType: 1 ## Description
-You may recall from Comparison with the Equality Operator that all comparison operators return a boolean true or false value. +You may recall from Comparison with the Equality Operator that all comparison operators return a boolean true or false value. Sometimes people use an if/else statement to do a comparison, like this:
function isEqual(a,b) {
  if (a === b) {
    return true;
  } else {
    return false;
  }
}
But there's a better way to do this. Since === returns true or false, we can return the result of the comparison: