Skip to content

Instantly share code, notes, and snippets.

@debbysa
Last active February 3, 2021 05:08
Show Gist options
  • Save debbysa/a6719fbb88fd73c0146e64ec4941986d to your computer and use it in GitHub Desktop.
Save debbysa/a6719fbb88fd73c0146e64ec4941986d to your computer and use it in GitHub Desktop.
const book = {
"title": "Manusia Setengah Salmon",
"author": "Raditya Dika",
"publisher": {
"name": "Gagas Media",
"address": "Jakarta Selatan"
}
}
const title = book.title;
const author = book.author;
const publisher = book.publisher;
console.log("saya membeli buku berjudul ", title);
console.log("buku ini karya ", author);
console.log("buku ini diterbitkan oleh ", publisher.name, "di kota ", publisher.address);
// saya membeli buku berjudul Manusia Setengah Salmon
// buku ini karya Raditya Dika
// buku ini diterbitkan oleh Gagas Media di kota Jakarta Selatan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment