Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions