1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-29 20:21:50 +02:00

typo-fix: typescript roadmap update 108-enum.md (#5030)

This commit is contained in:
Marco Malvicini
2024-01-18 07:57:33 +01:00
committed by GitHub
parent 5cf7aa340f
commit 2d2f670153

View File

@@ -1,6 +1,6 @@
# Enum
Enums is not a type-level extension of JavaScript. It allow a developer to define a set of named constants. Using enums can make it easier to document intent, or create a set of distinct cases. TypeScript provides both numeric and string-based enums.
Enums is not a type-level extension of JavaScript. It allows a developer to define a set of named constants. Using enums can make it easier to document intent, or create a set of distinct cases. TypeScript provides both numeric and string-based enums.
Here is an example of a numeric enum in TypeScript: