# JavaScript - less than or equal to: <=

less than or equal to operator is a logical operator that is used to compare two numbers.## <=

### Description

`par1 <= par2`

### Input

- par1 - any number
- par2 - any number

### Output

- Result - logical value returns a true, if the first number is less than or equal to the second, otherwise false.

**Note:**it works over all types of numbers.

### Examples

## JavaScript

less than or equal to the possible of use:```
a = 2 <= funkc(false);
b = x <= 12;
while ( y <= 32 )
y++;
```

## JavaScript

even one example in what situations we can use the operation less than or equal to:```
x <= y * 5
2 <= f(1.9)
(j + 10) <= 128
```

## JavaScript

Other pieces of example codes:y <= x

you can find it in the following collections: relational operators

less than or equal to in another programming language: