From 4e1350ac0da0fad9d9fee71859d6dc0cb5be1ef0 Mon Sep 17 00:00:00 2001 From: anu0012 Date: Sun, 9 Oct 2016 15:03:49 +0530 Subject: [PATCH] Update description --- .../basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index 34eed53341..3840b1b768 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -3996,9 +3996,9 @@ "title": "Returning Boolean Values from Functions", "description": [ "You may recall from Comparison with the Equality Operator that all comparison operators return a boolean true or false value.", - "A common anti-pattern is to use an if/else statement to do a comparison and then return true/false:", + "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;
}
}
", - "Since === returns true or false, we can return the result of the comparison:", + "But there's a better way to do this. Since === returns true or false, we can return the result of the comparison:", "
function isEqual(a,b) {
return a === b;
}
", "

Instructions

", "Fix the function isLess to remove the if/else statements."