23 lines
367 B
JavaScript
23 lines
367 B
JavaScript
({
|
|
name: "A Book",
|
|
authors: ["John Power", "Jamie Walsh"],
|
|
price: {
|
|
value: 200,
|
|
vat: function () {
|
|
return this.value * 0.2;
|
|
},
|
|
currency: {
|
|
symbol: '$',
|
|
name: 'USD'
|
|
}
|
|
},
|
|
availability: {
|
|
status: true,
|
|
text: "In Stock"
|
|
},
|
|
// And now, some truthy false values
|
|
truthy: {
|
|
zero: 0,
|
|
notTrue: false
|
|
}
|
|
})
|