In JavaScript, there are several ways to create objects:
1. Object Literals: This is the simplest way to create objects in JavaScript. You define an object using curly braces `{}` and specify key-value pairs for properties and methods.
In JavaScript, there are several ways to create objects:
1. Object Literals: This is the simplest way to create objects in JavaScript. You define an object using curly braces `{}` and specify key-value pairs for properties and methods.