//The first way of creating Object in JavaScript const obj = { id: 1, name: "John", username: "Doe" } //The second way of creating Object in //JavaScript using Object constructor. function Obj(id, name, username) { this.id; this.name; this.username; } const user = new Obj(1, 'John', 'Doe'); //The third way of creating object in JavaScript //is by using ES6 object literalls let id = 1; let name = 'John'; let username = 'Doe'; const obj = { id, name, username }