Explore BrainMass

Explore BrainMass

    Creating Javascript Constructor Functions

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Create an html document that includes a JavaScript program that creates a new constructor function named Automobile in the document head. Include at least five properties in the object definition, such as make, model, color, engine, seats, and so forth. Then assign the values of your car to each of the Automobile properties. Print the properties to the screen

    © BrainMass Inc. brainmass.com October 10, 2019, 6:16 am ad1c9bdddf

    Solution Summary

    The problem describes how to create a JavaScript constructor and utilize in an HTML page.