Complete the code to create an empty object named person.
const person = [1];Use curly braces {} to create an empty object in JavaScript.
Complete the code to create an object car with a property make set to 'Toyota'.
const car = [1];Use curly braces with key-value pairs to create an object with properties.
Fix the error in the code to create an object book with a property title set to 'JavaScript'.
const book = [1];= instead of colon : in object literals.Use colon : to assign values to keys in objects, not equals =.
Fill both blanks to create an object user with properties name and age.
const user = [1] name[2] 'Alice', age: 30 };
= instead of colon : for properties.Objects start with { and properties use colon : to assign values.
Fill all three blanks to create an object product with properties id, name, and price.
const product = [1] id[2] 101, name[3] 'Pen', price: 1.5 };
= instead of colon :.Start the object with {, use colon : to assign values, and separate properties with commas ,.
