Comparison with the Greater Than Operator

This commit is contained in:
Abhisek Pattnaik
2015-12-26 18:01:09 +05:30
committed by SaintPeter
parent aeb12fd4c4
commit 8621136b58

View File

@ -2465,8 +2465,8 @@
"id": "56533eb9ac21ba0edf2244d4",
"title": "Comparison with the Greater Than Operator",
"description": [
"The greater than operator (<code>&gt;</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>&gt;</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."
],