An object in JavaScript can be created using the object literal notation, which looks like this:
let myObject = {
key1: ‘value1’,
key2: ‘value2’
};
In the example above, myObject is an object with two keys (key1 and key2) and two corresponding values (value1 and value2).