diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index 073de8e211..4622387f21 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -2576,8 +2576,8 @@ "id": "56533eb9ac21ba0edf2244d6", "title": "Comparison with the Less Than Operator", "description": [ - "The less than operator (<) compares the values of two numbers. If the number to the left is less than the number to the right, it returns true. If the number on the left is greater than or equal to the number on the right, it returns false. Like the equality operator, less than converts data types.", - "Examples
2 < 5 // true
'3' < 7 // true
5 < 5 // false
3 < 2 // false
'8' < 4 // false
", + "The less than operator (<) compares the values of two numbers. If the number to the left is less than the number to the right, it returns true. Otherwise, it returns false. Like the equality operator, less than operator converts data types while comparing.", + "Examples
2 < 5 // true
'3' < 7 // true
5 < 5 // false
3 < 2 // false
'8' < 4 // false
", "

Instructions

", "Add the less than operator to the indicated lines so that the return statements make sense." ], @@ -2608,7 +2608,17 @@ "myTest(10);" ], "solutions": [ - "" + "function myTest(val) {", + " if (val < 25) { // Change this line", + " return \"Under 25\";", + " }", + " ", + " if (val < 55) { // Change this line", + " return \"Under 55\";", + " }", + "", + " return \"55 or Over\";", + "}" ], "type": "waypoint", "challengeType": "1",