If you want to create an object in JavaScript, you can use the following methods:

Method 1: Create Object Using Object Literal

var obj = {
  name: "John",
  age: 30,
  city: "New York"
};

Method 2: Create Object Using Object Constructor

var obj = new Object();
obj.name = "John";
obj.age = 30;
obj.city = "New York";

Method 3: Create Object Using Object.create

var obj = Object.create(Object.prototype);
obj.name = "John";
obj.age = 30;
obj.city = "New York";

Method 4: Create Object Using Object.create with null

var obj = Object.create(null);
obj.name = "John";
obj.age = 30;
obj.city = "New York";