greater than or 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 or equal to operator will convert data types while comparing.
Examples
6 >= 6 // true
7 >= '3' // true
2 >= 3 // false
'7' >= 9 // false
greater than or equal to operator to the indicated lines so that the return statements make sense.
testGreaterOrEqual(0) should return "Less than 10"
testString: assert(testGreaterOrEqual(0) === "Less than 10", 'testGreaterOrEqual(0) should return "Less than 10"');
- text: testGreaterOrEqual(9) should return "Less than 10"
testString: assert(testGreaterOrEqual(9) === "Less than 10", 'testGreaterOrEqual(9) should return "Less than 10"');
- text: testGreaterOrEqual(10) should return "10 or Over"
testString: assert(testGreaterOrEqual(10) === "10 or Over", 'testGreaterOrEqual(10) should return "10 or Over"');
- text: testGreaterOrEqual(11) should return "10 or Over"
testString: assert(testGreaterOrEqual(11) === "10 or Over", 'testGreaterOrEqual(11) should return "10 or Over"');
- text: testGreaterOrEqual(19) should return "10 or Over"
testString: assert(testGreaterOrEqual(19) === "10 or Over", 'testGreaterOrEqual(19) should return "10 or Over"');
- text: testGreaterOrEqual(100) should return "20 or Over"
testString: assert(testGreaterOrEqual(100) === "20 or Over", 'testGreaterOrEqual(100) should return "20 or Over"');
- text: testGreaterOrEqual(21) should return "20 or Over"
testString: assert(testGreaterOrEqual(21) === "20 or Over", 'testGreaterOrEqual(21) should return "20 or Over"');
- text: You should use the >= operator at least twice
testString: assert(code.match(/val\s*>=\s*('|")*\d+('|")*/g).length > 1, 'You should use the >= operator at least twice');
```