diff options
-rw-r--r-- | typescript.html.markdown | 1 |
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 { |