How to create javascript objects?
Example:
var person = {
firstName: "John",
lastName: "Doe",
age: 30
};
console.log(person.firstName); // Outputs: John
Solution:
Objects in JavaScript are containers for named values. They are defined using curly braces and can contain multiple name-value pairs.