Operators
Greater than (>)
Tests whether the left value is greater than the right according to relational comparison. Numeric text compared with a Number can be converted, while two strings compare lexically.
Formal Syntax & Structure
javascript syntaxjavascript
left > rightParameters & Attributes
| Name | Type | Description |
|---|---|---|
| left | expression | Left operand. |
| right | expression | Right operand; short-circuiting may skip evaluation where applicable. |
Return Value
Boolean
Result of the operation.
Working Example
Example Snippetjavascript
console.log("12" > 5);