- Object literal
- Creating instance of Object directly (using new keyword)
- Using an object constructor (using new keyword)
By creating instance of Object
By using an Object constructor
- Here, you need to create function with arguments. Each argument value can be assigned in the current object by using this keyword.