Skip to content

Instantly share code, notes, and snippets.

@robertcoopercode
Created January 9, 2019 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertcoopercode/66b0b602396f8be728ac8c8649127c5d to your computer and use it in GitHub Desktop.
Save robertcoopercode/66b0b602396f8be728ac8c8649127c5d to your computer and use it in GitHub Desktop.
// 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