---
title: "Discussion on \"What the Heck Are Iterators and Generators in JavaScript\" | Hashnode"
description: "Discussion on \"What the Heck Are Iterators and Generators in JavaScript\". Have you ever come across syntax like function* or statements such as it.next() and didn't have a clue what these are, where they come from and what they can be used for?\nYou've come to the right place! Recently I needed to revisit iterators and gene..."
url: "https://hashnode.com/posts/what-the-heck-are-iterators-and-generators-in-javascript/60f84449410a0224b5d518e2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What the Heck Are Iterators and Generators in JavaScript](https://blog.tomaszgil.me/what-the-heck-are-iterators-and-generators-in-javascript?utm_source=hashnode&utm_medium=feed)

Have you ever come across syntax like function\* or statements such as it.next() and didn't have a clue what these are, where they come from and what they can be used for? You've come to the right place! Recently I needed to revisit iterators and gene...

Jul 21, 2021 · 4 min read · blog.tomaszgil.me  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming](https://hashnode.com/tag/programming)
-   [#generators](https://hashnode.com/tag/generators)
-   [#developer](https://hashnode.com/tag/developer)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)

## Written by

[Tomasz Gil](https://hashnode.com/@tomaszgil)

@tomaszgil · Poznań, Poland

  
[View profile](https://hashnode.com/@tomaszgil)

Senior Software Engineer

I help product teams build quality software and lead engineering efforts. Currently working at OpenSpace as a Senior Software Engineer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
