There are 3 ways to create an object in JavaScript.
Let's see a simple code to create an object using object literal.