---
title: "Discussion on \"Generator Functions: Zero to Hero\" | Hashnode"
description: "Discussion on \"Generator Functions: Zero to Hero\". Everything about an amazing JavaScript feature you might never use."
url: "https://hashnode.com/posts/javascript-generator-functions/63caef2e05b5642ef9e813c0"
---

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

Discussion

# [Generator Functions: Zero to Hero](https://srjsdev.hashnode.dev/javascript-generator-functions?utm_source=hashnode&utm_medium=feed)

Everything about an amazing JavaScript feature you might never use.

Jan 20, 2023 · 6 min read · srjsdev.hashnode.dev  
Updated Feb 11, 2023  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#functions](https://hashnode.com/tag/functions)
-   [#generators](https://hashnode.com/tag/generators)
-   [#async](https://hashnode.com/tag/async)

## Written by

[Steven Olsen](https://hashnode.com/@srjsdev)

@srjsdev

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

Online educator and mentor for Sr. JS developers

With 20+ years of dev experience, I'm an online educator, mentor, and consultant--teaching practical, advanced topics to developers like you on how to write: ✅ new AI/LLM features ✅ maintainable JS code ✅ scalable web apps ...yup that's about it! 🎤

## Responses 1

Markdown supported · ⌘↵ to post

[Steven Olsen](https://hashnode.com/@srjsdev)

[Jan 23, 2023](https://hashnode.com/posts/javascript-generator-functions/63caef2e05b5642ef9e813c0/comment/63cf095db0e841d4136d9866)

Here are more examples of what you can do with generator functions--efficient number ranges, and how to convert generators into arrays:

[gist.github.com/crazy4groovy/4d871aadad1d71754a86…](https://gist.github.com/crazy4groovy/4d871aadad1d71754a863e92f119c489)
