> For the complete documentation index, see [llms.txt](https://appsecurity.gitbook.io/devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appsecurity.gitbook.io/devops/ppc/ppc-langs/frontend/js-ts/javascript/cases/periodicheskie-operacii.md).

# Периодические операции

```javascript
const interval = setInterval(function ping() {
  // do something
}, 30000);

clearInterval(interval); // close interval
```
