---
title: "Discussion on \"Understanding Enums in Solidity.\" | Hashnode"
description: "Discussion on \"Understanding Enums in Solidity.\". In Solidity, Enums are a way of creating user-defined types. They are used to restrict a variable to have one of the only pre-defined values. Enums is the short form for enumerated, and the values that are in the enumerated list, are called enums.\nTh..."
url: "https://hashnode.com/posts/understanding-enums-in-solidity/5ff75bffaa5c467fe15569df"
---

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

Discussion

# [Understanding Enums in Solidity.](https://theucheedeoga.hashnode.dev/understanding-enums-in-solidity?utm_source=hashnode&utm_medium=feed)

In Solidity, Enums are a way of creating user-defined types. They are used to restrict a variable to have one of the only pre-defined values. Enums is the short form for enumerated, and the values that are in the enumerated list, are called enums. Th...

Jan 7, 2021 · 4 min read · theucheedeoga.hashnode.dev  
Read the article

-   [#blockchain](https://hashnode.com/tag/blockchain)
-   [#solidity](https://hashnode.com/tag/solidity)
-   [#smart-contracts](https://hashnode.com/tag/smart-contracts)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Uchenna Edeoga](https://hashnode.com/@theucheedeoga)

@theucheedeoga

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

Software Developer

## Responses 1

Markdown supported · ⌘↵ to post

[Ehis Edemakhiota](https://hashnode.com/@Ehizman)

[Jan 27, 2021](https://hashnode.com/posts/understanding-enums-in-solidity/5ff75bffaa5c467fe15569df/comment/6011c177ffaabc69d3ec68a6)

Awesome piece Uche👏👏👏

[Uchenna Edeoga](https://hashnode.com/@theucheedeoga)

[Jan 27, 2021](https://hashnode.com/posts/understanding-enums-in-solidity/5ff75bffaa5c467fe15569df/comment/6011c177ffaabc69d3ec68a6#reply-6011c3ecffaabc69d3ec68f8)

Thank you
