Suggest an editImprove this articleRefine the answer for “What does interval() do?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)`interval()` in RxJS creates an `Observable` that **periodically emits numbers with a time delay**. **Key point:** it creates an infinite stream of numbers, starting from 0 and continuing every N milliseconds.Shown above the full answer for quick recall.Answer (EN)Image`interval()` in RxJS creates an `Observable` that **periodically emits numbers with a time delay**. --- ### Example: ```ts import { interval } from 'rxjs'; interval(1000).subscribe(x => console.log(x)); ``` This outputs: ```javascript 0 1 2 3 ...and so on, every second ``` Each number is a "tick". It starts at 0 and increases by 1. --- ### Parameter: - `interval(1000)` means **every 1000ms (1 second)** - if you write `interval(500)`, it will tick twice a second --- ### Where it's used: - Timers - Animations - Status checks - Periodic data loading --- ### Conclusion: `interval()` creates an infinite stream of numbers, **starting from 0 and continuing every N milliseconds**. Very handy when you need to do something regularly over time.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.