Comparison with the Greater Than Operator
This commit is contained in:
committed by
SaintPeter
parent
aeb12fd4c4
commit
8621136b58
@ -2465,8 +2465,8 @@
|
||||
"id": "56533eb9ac21ba0edf2244d4",
|
||||
"title": "Comparison with the Greater Than Operator",
|
||||
"description": [
|
||||
"The greater than operator (<code>></code>) compares the values of two numbers. If the number to the left is greater than the number to the right, it returns <code>true</code>. If the number on the left is less than or equal to the number on the right, it returns <code>false</code>. Like the equality operator, greater than converts data types.",
|
||||
"<strong>Examples</strong><blockquote> 5 > 3 // true<br /> 7 > '3' // true<br /> 2 > 3 // false<br />'1' > 9 // false</blockquote>",
|
||||
"The greater than operator (<code>></code>) compares the values of two numbers. If the number to the left is greater than the number to the right, it returns <code>true</code>. Otherwise, it returns <code>false</code>.<br>Like the equality operator, greater than operator will convert data types of values while comparing.",
|
||||
"<strong>Examples</strong><blockquote> 5 > 3 // true<br> 7 > '3' // true<br> 2 > 3 // false<br>'1' > 9 // false</blockquote>",
|
||||
"<h4>Instructions</h4>",
|
||||
"Add the <code>greater than</code> operator to the indicated lines so that the return statements make sense."
|
||||
],
|
||||
|
Reference in New Issue
Block a user