---
title: "Discussion on \"GENERATOR FUNCTIONS.\" | Hashnode"
description: "Discussion on \"GENERATOR FUNCTIONS.\". Generator functions are functions that can be exited and later re-entered. Their context ( variable bindings ) will be saved across re-entrances.\n\nSyntax\nTo write a generator function, we declare it almost as we would a normal function instead with a..."
url: "https://hashnode.com/posts/generator-functions/5fa883d5ce3a346da3198ab8"
---

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

Discussion

# [GENERATOR FUNCTIONS.](https://amara.hashnode.dev/generator-functions?utm_source=hashnode&utm_medium=feed)

Generator functions are functions that can be exited and later re-entered. Their context ( variable bindings ) will be saved across re-entrances. Syntax To write a generator function, we declare it almost as we would a normal function instead with a...

Nov 8, 2020 · 3 min read · amara.hashnode.dev  
Read the article

-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#devcommunity](https://hashnode.com/tag/devcommunity)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Amarachi Iheanacho](https://hashnode.com/@Amara)

@Amara · Lagos, Nigeria

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

Frontend Developer

All things Frontend web development.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
