Skip to content

Instantly share code, notes, and snippets.

@CasonBarnhill
Created October 19, 2015 18:33
Show Gist options
  • Save CasonBarnhill/455cb15019f58370d729 to your computer and use it in GitHub Desktop.
Save CasonBarnhill/455cb15019f58370d729 to your computer and use it in GitHub Desktop.
// Assign "Hello World" to a variable message
// Assign a different string to a different variable
// Assign a number to a variable
// Use string interpolation to display the number in a string
// i.e. string interpolation = "Hello {0}"
// Make an array of your favorite movies or books or bands. Have at least 4 values.
// Make a anonymous type object of information about yourself. Have at least 4 properties on the anoymous type
// BONUS 1
// Make an array of anonymous types containing more information
// about your favorite movies. The type should have at least 3 keys+values
// BONUS 2
// Use 'for loop' and loop through the array of anonymoous types and print only one of the properties
// For example { firstname = "Jimbob" } loop through and print only the firstname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment