Created
January 9, 2019 00:29
-
-
Save robertcoopercode/66b0b602396f8be728ac8c8649127c5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First method is using the square bracket notation | |
let messageArray: string[] = ['hello', 'my name is fred', 'bye']; | |
// Second method uses the Array keyword notation | |
let messageArray: Array<string> = ['hello', 'my name is fred', 'bye']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment