# Javascript Logical Assignment Operators

Javascript logical assignment operators include 3 operators :

**Logical OR assignment operator** : This will perform an assignment only when left hand side is a falsy value (false, 0, null, undefined, "").

```
// set x to y when x is falsy
x ||= y;
```

**Logical AND assignment operator** : This will perform an assignment only when left hand side is not a falsy value.

```
// set x to y when x is not falsy
x &&= y;
```

**Logical Nullish assignment operator** : This will perform an assignment only when left hand side is a nullish value (null, undefined)

```
// set x to y when x is nullish
x ??= y;
```

#### Browser Compatibility

#### Tutorials & Resources

## Comments