Open the Developer Tools Console to see the output of the JavaScript code

This example creates an Object in JavaScript using a function to define a Constructor. If you examine the Object in the console, you can see that it has the functions inherited from the Object prototype. We can also add functions to the Object inside the constructor.