Skip to content

Instantly share code, notes, and snippets.

@victoralvarez84
Created August 24, 2015 23:16
Show Gist options
  • Save victoralvarez84/e75b27b95d29ad667965 to your computer and use it in GitHub Desktop.
Save victoralvarez84/e75b27b95d29ad667965 to your computer and use it in GitHub Desktop.
Assignment 1-1 - The Basics
//** 1. Assign the message "Hello, World!" to a variable.*//
const a = "Hello, World!";
// 2. Assign a different string to a different variable.
const b = "Star Wars!";
// 3. Assign a number to a variable.
const num = 1;
// 4. Use string concatenation to display the number from #3 in a string.
const c = num.toString();
// 5. Make an array of at least four of your favorite movies or books or bands.
const bands = ["Jimmy Eat World", "The Weakerthans", "Death Cab for Cutie", "Nada Surf"];
// 6. Make a object of information about yourself with at least four properties.
const victor = {age:30, gender:"Male", birthplace:"Rochester, NY", education:"B.A."};
@victoralvarez84
Copy link
Author

Got the six assigned done. Still working on the bonus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment