Project 9: Travel Destination Page
JS Wizard
Builds on these lessons
Step 1 of 3
Project
Enhanced Object Literals
Given loose variables city and country, build an object using shorthand property syntax { city, country } instead of { city: city, country: country }. When a variable name and the property name you want match, you can skip repeating it.
🎯 Your Task
Please add the exact code shown in the light gray box below to your editor.Do not delete your previous code, just insert these new lines in the correct place!
const city = "Kyoto";
const country = "Japan";
const destination = { city, country };
console.log(destination);