---
meta:
  title: Assignment operator
  description: The assignment operator is used to assign a value to a variable.
---

The assignment operator is used to assign a value to a variable.

```javascript
const a = 1;
const b = 2 * 3;
console.log(b); // 6
```
