From 09db1f305fa17f9abe06d9c5d71274932b51535f Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Mon, 28 Dec 2015 08:53:41 +0530 Subject: [PATCH] Comparison with the Equality Operator Fix FreeCodeCamp/FreeCodeCamp#5486 --- .../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 6736494d6b..2f6cc67c09 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -2297,10 +2297,10 @@ "title": "Comparison with the Equality Operator", "description": [ "There are many Comparison Operators in JavaScript. All of these operators return a boolean true or false value.", - "The most basic operator is the equality operator ==. The equality operator compares two values and returns true if they're equivalent or false if they are not. Note that equality is different from assignment (=), which assigns the value at the right of the operator to a variable in the left.", + "The most basic operator is the equality operator ==. The equality operator compares two values and returns true if they're equivalent or false if they are not. Note that equality is different from assignment (=), which assigns the value at the right of the operator to a variable in the left.", "
function equalityTest(myVal) {
if (myVal == 10) {
return \"Equal\";
}
return \"Not Equal\";
}
", "If myVal is equal to 10, the function will return \"Equal\". If it is not, the function will return \"Not Equal\".", - "The equality operator will do it's best to convert values for comparison, for example:", + "The equality operator will do its best to convert values for comparison, for example:", "
1 == 1 // true
\"1\" == 1 // true
1 == '1' // true
0 == false // true
0 == null // false
0 == undefined // false
null == undefined // true
", "

Instructions

", "Add the equality operator to the indicated line so that the function will return \"Equal\" when val is equivalent to 12"