You can create an object in three different ways: Using object literal. By creating instance of Object directly. By using constructor function.
How many ways we can create object in JavaScript?
You can create an object in three different ways: Using object literal. By creating instance of Object directly. By using constructor function.