diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json
index b286b97af3..239ff2a1be 100644
--- a/challenges/01-front-end-development-certification/basic-javascript.json
+++ b/challenges/01-front-end-development-certification/basic-javascript.json
@@ -2276,14 +2276,14 @@
"id": "56533eb9ac21ba0edf2244d0",
"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 operators is the equality operator ==
. The equality operator compares to values and returns true if they're equivilent or false if they are not. Note that equality is different from assignement (=
), which returns the value to the right of the operator.",
- "
function equalityTest(myVal) {", + "There are many Comparison Operators in JavaScript. All of these operators return a boolean
if (myVal == 10) {
return \"Equal\";
}
return \"Not Equal\";
}
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.",
+ "function equalityTest(myVal) {", "If
if (myVal == 10) {
return \"Equal\";
}
return \"Not Equal\";
}
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:",
- "1 == 1 // true", + "
\"1\" == 1 // true
1 == '1' // true
0 == false // true
0 == null // false
0 == undefined // false
null == undefined // true
1 == 1 // true", "
\"1\" == 1 // true
1 == '1' // true
0 == false // true
0 == null // false
0 == undefined // false
null == undefined // true
equality operator
to the indicated line so the function will return \"Equal\" when val
is equivilent to 12
"
+ "Add the equality operator
to the indicated line so that the function will return \"Equal\" when val
is equivalent to 12
"
],
"releasedOn": "11/27/2015",
"tests": [