Favorites

JavaScript >= Greater than or equal Operator

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
>=
JavaScript Comparison OperatorThis operator is supported by all modern browsers.
Updated 28th November 2026

The greater than or equal operator (>=) checks whether the left value is larger than or equal to the right one.

Description

The greater than or equal operator >= returns true if the left operand is larger than or equal to the right. It uses the same conversion rules as >.

For numbers, a >= b is the same as !(a < b), except when NaN is involved: every comparison with NaN is false. Because relational operators convert null to 0 but equality doesn't, null >= 0 is true while null == 0 is false.

It's commonly used for thresholds, such as age limits, minimum lengths and passing scores. To check that a value falls within a range, combine two comparisons: value >= min && value <= max.

Properties

Operator
>=
Category
Comparison
Precedence
9 (1 is lowest, 18 is highest)
Associativity
left-to-right

Syntax

x >= y

Example

const age = 18;
console.log(age >= 18 ? 'adult' : 'minor');
console.log('apple' >= 'apple');

Browser Support

The following information will show you the current browser support for the >= operator. Hover over a browser icon to see the version that first introduced support for this operator.

This operator is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee