Skip to content

Instantly share code, notes, and snippets.

@appoll
Created November 23, 2020 17:25
Show Gist options
  • Save appoll/af616684e6895c34344ff63f2ddc2bbc to your computer and use it in GitHub Desktop.
Save appoll/af616684e6895c34344ff63f2ddc2bbc to your computer and use it in GitHub Desktop.
// E1: try it with an object
// 1.1 add 2 properties to the user object: one number (e.g. age) and one boolean (e.g. germanCitizenship)
// 1.2 print the person's name, age and citizenship using template literals
let user = {
firstName: "Thomas",
lastName: "Hummel"
}
console.log("The name is " + user.firstName + " and the age is " + user.age);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment