From 175d0c4bcf785cb97992160877bf828e61db856d Mon Sep 17 00:00:00 2001 From: Abhisek Pattnaik Date: Sat, 26 Dec 2015 18:49:52 +0530 Subject: [PATCH] Comparison with the Greater Than Equal To Operator --- .../basic-javascript.json | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index 163190b523..073de8e211 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -2519,8 +2519,8 @@ "id": "56533eb9ac21ba0edf2244d5", "title": "Comparison with the Greater Than Equal To Operator", "description": [ - "The greater than equal to operator (>=) compares the values of two numbers. If the number to the left is greater than or equal the number to the right, it returns true. If the number on the left is less than the number on the right, it returns false. Like the equality operator, greater than equal to converts data types.", - "Examples
6 >= 6 // true
7 >= '3' // true
2 >= 3 // false
'7' >= 9 // false
", + "The greater than equal to operator (>=) compares the values of two numbers. If the number to the left is greater than or equal to the number to the right, it returns true. Otherwise, it returns false.
Like the equality operator, greater than equal to operator will convert data types while comparing.", + "Examples
6 >= 6 // true
7 >= '3' // true
2 >= 3 // false
'7' >= 9 // false
", "

Instructions

", "Add the greater than equal to operator to the indicated lines so that the return statements make sense." ], @@ -2552,7 +2552,17 @@ "myTest(10);" ], "solutions": [ - "" + "function myTest(val) {", + " if (val >= 20) { // Change this line", + " return \"20 or Over\";", + " }", + " ", + " if (val >= 10) { // Change this line", + " return \"10 or Over\";", + " }", + "", + " return \"9 or Under\";", + "}" ], "type": "waypoint", "challengeType": "1",