Created
November 23, 2020 17:25
-
-
Save appoll/af616684e6895c34344ff63f2ddc2bbc to your computer and use it in GitHub Desktop.
This file contains 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
// 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