JSFiddle - React, Tailwind, and code Playground
by Karl Hui
JavaScript
var aBook =
{
"isbn": "94234-123A",
"title": "Of Mice and Men",
"pages": 102,
"author": "John Steinbeck",
"languages": ["english", "french (translated)"],
"price": 10.99
};
aBook.genre = "Southern hobo fiction";
//Quick note: the ordering is not enforced; don't expect these properties to be in the same order you put them in above
for(var key in aBook){
console.log("The key is " + key + " and that value is " + aBook[key]);
}