summaryrefslogtreecommitdiffhomepage
path: root/typescript.html.markdown
diff options
context:
space:
mode:
authorShafkathullah Ihsan <shafkathullah28@gmail.com>2021-11-09 04:06:40 +0530
committerGitHub <noreply@github.com>2021-11-08 23:36:40 +0100
commit0320846c0c718768ed12be7a5fd0c5e6b1c5f1ed (patch)
tree858aef2c0b6eef99594fe1cf484e3928d30fb227 /typescript.html.markdown
parent04690c70579707177ca110e23229af3e6ae755e9 (diff)
Updates enum docs (#4266)
Diffstat (limited to 'typescript.html.markdown')
-rw-r--r--typescript.html.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/typescript.html.markdown b/typescript.html.markdown
index f7a41ce1..64be9401 100644
--- a/typescript.html.markdown
+++ b/typescript.html.markdown
@@ -48,6 +48,7 @@ let list: Array<number> = [1, 2, 3];
// For enumerations:
enum Color { Red, Green, Blue };
let c: Color = Color.Green;
+console.log(Color[c]); // "Green"
// Lastly, "void" is used in the special case of a function returning nothing
function bigHorribleAlert(): void {