diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json
index 4622387f21..1067f053a3 100644
--- a/challenges/01-front-end-development-certification/basic-javascript.json
+++ b/challenges/01-front-end-development-certification/basic-javascript.json
@@ -2633,28 +2633,29 @@
"title": "Comparison with the Less Than Equal To Operator",
"description": [
"The less than equal to
operator (<=
) compares the values of two numbers. If the number to the left is less than or equl the number to the right, it returns true
. If the number on the left is greater than the number on the right, it returns false
. Like the equality operator, less than equal to
converts data types.",
- "Examples
4 <= 5 // true", + "Examples
'7' <= 7 // true
5 <= 5 // true
3 <= 2 // false
'8' <= 4 // false
4 <= 5 // true", "
'7' <= 7 // true
5 <= 5 // true
3 <= 2 // false
'8' <= 4 // false
less than equal to
operator to the indicated lines so that the return statements make sense."
],
"releasedOn": "11/27/2015",
"tests": [
- "assert(myTest(0) === \"Smaller Than 12\", 'message: myTest(0)
should return \"Smaller Than 12\"');",
- "assert(myTest(11) === \"Smaller Than 12\", 'message: myTest(11)
should return \"Smaller Than 12\"');",
- "assert(myTest(12) === \"Smaller Than 24\", 'message: myTest(12)
should return \"Smaller Than 24\"');",
- "assert(myTest(23) === \"Smaller Than 24\", 'message: myTest(23)
should return \"Smaller Than 24\"');",
- "assert(myTest(24) === \"25 or More\", 'message: myTest(24)
should return \"24 or More\"');",
- "assert(myTest(55) === \"25 or More\", 'message: myTest(55)
should return \"24 or More\"');",
+ "assert(myTest(0) === \"Smaller Than or Equal to 12\", 'message: myTest(0)
should return \"Smaller Than or Equal to 12\"');",
+ "assert(myTest(11) === \"Smaller Than or Equal to 12\", 'message: myTest(11)
should return \"Smaller Than or Equal to 12\"');",
+ "assert(myTest(12) === \"Smaller Than or Equal to 12\", 'message: myTest(12)
should return \"Smaller Than or Equal to 12\"');",
+ "assert(myTest(23) === \"Smaller Than or Equal to 24\", 'message: myTest(23)
should return \"Smaller Than or Equal to 24\"');",
+ "assert(myTest(24) === \"Smaller Than or Equal to 24\", 'message: myTest(24)
should return \"Smaller Than or Equal to 24\"');",
+ "assert(myTest(25) === \"25 or More\", 'message: myTest(25)
should return \"25 or More\"');",
+ "assert(myTest(55) === \"25 or More\", 'message: myTest(55)
should return \"25 or More\"');",
"assert(editor.getValue().match(/val\\s*<=\\s*\\d+/g).length > 1, 'message: You should use the <=
operator at least twice');"
],
"challengeSeed": [
"function myTest(val) {",
" if (val) { // Change this line",
- " return \"Smaller Than 12\";",
+ " return \"Smaller Than or Equal to 12\";",
" }",
" ",
" if (val) { // Change this line",
- " return \"Smaller Than 24\";",
+ " return \"Smaller Than or Equal to 24\";",
" }",
"",
" return \"25 or More\";",
@@ -2665,7 +2666,17 @@
""
],
"solutions": [
- ""
+ "function myTest(val) {",
+ " if (val <= 12) { // Change this line",
+ " return \"Smaller Than or Equal to 12\";",
+ " }",
+ " ",
+ " if (val <= 24) { // Change this line",
+ " return \"Smaller Than or Equal to 24\";",
+ " }",
+ "",
+ " return \"25 or More\";",
+ "}"
],
"type": "waypoint",
"challengeType": "1",