Bake dates into articles
This commit is contained in:
@ -5,6 +5,8 @@ tags: javascript,object,class,symbol,generator
|
||||
authors: chalarangelo
|
||||
cover: blog_images/book-chair.jpg
|
||||
excerpt: Enums are part of TypeScript, but what about defininf enums in plain old JavaScript? Here are a few way you can do that.
|
||||
firstSeen: 2021-05-24T12:00:00+03:00
|
||||
lastUpdated: 2021-06-12T19:30:41+03:00
|
||||
---
|
||||
|
||||
TypeScript's enums are a very convenient feature present in many other languages. JavaScript, however, does not have a similar concept at this time. But what JavaScript lacks in syntactic sugar it makes up for in terms of flexibility.
|
||||
|
||||
Reference in New Issue
Block a user