Skip to content

mbruno-kr/enum-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enum Demo

Example

Code

enum Status {
    Success = 'success',
    Failure = 'failure'
}
console.log(
    'Check this out: \n', 
    Status.Success
);
console.log(
    'Now with just a [key]\n', 
    Status["Success"]
);

Output

enum-demo on  main [!] is 📦 v1.0.0 via  v16.13.1 
❯ yarn yeet
Check this out: 
 success
Now with just a [key]
 success

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published