> For the complete documentation index, see [llms.txt](https://strctr.gitbook.io/programming/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://strctr.gitbook.io/programming/01-languages/javascript/01-language/a-core/a2-operators-and-statements/01-operators.md).

# 01. Operators

Выражения вызова и обращения к свойству имеют более высокий приоритет, чем любой из операторов.

![alt text](/files/-M5buS--8xlKNmTRBNAt)

### ??

The **nullish coalescing operator (**`??`**)** is a logical operator that returns its right-hand side operand when its left-hand side operand is [`null`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null) or [`undefined`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined), and otherwise returns its left-hand side operand.

```javascript
const nullValue = null;
const emptyText = ""; // falsy
const someNumber = 42;

const valA = nullValue ?? "default for A"; // "default for A"
const valB = emptyText ?? "default for B"; // ""
const valC = someNumber ?? 0; // 42
```
