---
title: "Discussion on \"Working with generator functions in Javascript\" | Hashnode"
description: "Discussion on \"Working with generator functions in Javascript\". This article details an introduction to generator functions, how to use them in async code as well as keywords related to generator functions"
url: "https://hashnode.com/posts/working-with-generator-functions-in-javascript/63f1446b76f5810908fc9b97"
---

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

Discussion

# [Working with generator functions in Javascript](https://tobit.hashnode.dev/working-with-generator-functions-in-javascript?utm_source=hashnode&utm_medium=feed)

This article details an introduction to generator functions, how to use them in async code as well as keywords related to generator functions

Feb 18, 2023 · 3 min read · tobit.hashnode.dev  
Updated Feb 21, 2023  
Read the article

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

## Written by

[David Ajuka](https://hashnode.com/@Ajuka)

@Ajuka · Lagos, Nigeria

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

Blockchain, Javascript.

Javascript Engineer, Fashion Lover.

## Responses 3

Markdown supported · ⌘↵ to post

[Favourite Jome](https://hashnode.com/@Favourite)

[Feb 19, 2023](https://hashnode.com/posts/working-with-generator-functions-in-javascript/63f1446b76f5810908fc9b97/comment/63f1b3200e63a77a616febba)

Hey [David Ajuka](https://hashnode.com/@Ajuka), thanks for sharing!

The last example, I'm not sure I understand the, but I'll have to run the code to do so.

May I ask, what other examples can a generator function be used?
