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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started