Different way to create Objects:
a. Object Literals.
b. New operator or constructor.
c. Object.create method.
ii.New operator or constructor.
The another way to create an object is to use the constructor function. Here we are calling a function using a new operator, the function will acts as a constructor and returns an new object.
The third way where we can also create new objects using the Object.create() method
function definition tells about a function's name, return type, and parameters. A function definition provides the actual body of the function.