Skip to content

Instantly share code, notes, and snippets.

@smallpaes
Created June 16, 2019 10:34
Show Gist options
  • Save smallpaes/eb435a59471774d1c4830a5e8c64be7b to your computer and use it in GitHub Desktop.
Save smallpaes/eb435a59471774d1c4830a5e8c64be7b to your computer and use it in GitHub Desktop.
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