Created
June 16, 2019 10:34
-
-
Save smallpaes/eb435a59471774d1c4830a5e8c64be7b 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
const store = { | |
name: 'Mr.r Mike Coffee', | |
employees: 100, | |
locations: { | |
taipei: 'Address, Taipei', | |
singapore: 'Address, Singapore', | |
sanFrancisco: 'Address, San Francisco' | |
} | |
} | |
function displayStoreInfo(store) { | |
console.log(`You are looking for: ${store.name}`) | |
console.log(`It currently has ${store.employees} employees`) | |
console.log(`Location in Taipei: ${store.locations.taipei}`) | |
console.log(`Location in Singapore: ${store.locations.singapore}`) | |
console.log(`Location in San francisco: ${store.locations.sanFrancisco}`) | |
} | |
displayStoreInfo(store) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment