---
title: % (modulus)
slug: percent-modulus
docTags: 
createdAt: 2021-09-14T17:53:04.000Z
---

An operator used to calculate the remainder of a division operation.

### Syntax

`dividend % divisor`

### Sample usage

`10 % 7 `returns `3`

### Supported data types

- Given two values of type `Number`, the modulus operator will return the remainder of the first value divided by the second value.

### See also

- [Number](docId\:ucI5tCTfVBhonEJ6ZQijg)&#x20;
- [/ (divide)](docId\:luJCYaMvfnApFnvX916_K)&#x20;

