Question: Javascript Assignment: Create a document that includes a constructor function named Company in the document head area. Include four properties in the Company object definition:
Javascript Assignment:
Create a document that includes a constructor function named Company in the document head area.
Include four properties in the Company object definition:
name, products, motto, and numEmployees (for number of employees.)
Instantiate a new Company object in the document body , then assign values to each of the properties
Print the name, products, motto, and the numEmployees properties to the screen using document.write methods.
Combine each printed property with a descriptive string.
For example, when you print the company name, it should read something like " The company name is MyCompany."
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
