Operators
Less than or equal (<=)
Tests the inclusive upper bound. Comparisons involving NaN are false, so this is not universally interchangeable with negating >.
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(5 <= 5);