//sample solution
var australia = {
weather: "superb",
people: "not many of them but they're all great!",
tourism: "a wonderful place to holiday. please visit!"
};
var jordan = new Object();
jordan.weather = "hot. but so are the people!";
jordan.people = "see above!";
jordan.tourism = "Codecademy's dream team retreat!";
// create your objects here
var unitedStates = {
weather: "of all sorts",
people: "of all types",
tourism: "outstanding place to do business!"
};
var hongKong = new Object();
hongKong.weather = "sometimes quite muggy";
hongKong.people = "was home to House";
hongKong.tourism = "shop till you drop! eat till you pop!";
//test
console.log(unitedStates);
console.log(unitedStates.weather);
console.log(unitedStates.people);
console.log(unitedStates.tourism);
console.log(hongKong);
console.log(hongKong.weather);
console.log(hongKong.people);
console.log(hongKong.tourism);
No comments:
Post a Comment