Last active
January 16, 2020 11:35
-
-
Save indreklasn/ff342f26ef5030d92435f6345f3ce82d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const person = { | |
name: "Indrek", | |
age: 26, | |
pets: { | |
name: "Simmo", | |
type: "cat", | |
age: 8.5 | |
} | |
} | |
const isIndrek = person.name === "Indrek" && person.age === 26 | |
const hasPets = person.pets && person.pets.type === "cat" | |
if (isIndrek && hasPets) { | |
console.log("You're definitely Indrek") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment