Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

No late submission will be accepted. Your web page MUST and run without error. Use JS_OOP1 + Your Last Name + First Letter of Your

image text in transcribed
No late submission will be accepted. Your web page MUST and run without error. Use JS_OOP1 + Your Last Name + First Letter of Your First Name as your file name. Note that no space or special character other than underscore should be used in the name. For instance, for me, the name of my file should be JS_OOPlDingW.html. Violation of naming requirement will result in 3 points cut. In the HTML comment tags, at the very beginning of the HTML, you should put your full name, the course number and name (COP 3834-01 Web Application Development), the name of lab. e.g. JS_OOP1, and the date. Without this. 5 point will be cut. Write a complete webpage with embedded JavaScript code. Inside this page, write three text elements with id attributes to display following three objects Object alligator created using object literal Object rose created using new keyword without constructor, starting from empty object Object willow created using constructor function, this keyword, and new keyword Every object should have At least 3 properties. The values for object alligator's properties can be literals. Values for rose and willow objects MUST be read from the use (i.e. keyboard) with proper prompts One display Me() method, which is a function without return value and outputs current values of all properties using innerHTML and one text element created above. One myName() method, which is a function with return value and returns the object name, i.e. alligator, rose, or willow. After creation of these objects, call both displayMe() and myName() methods from every object. The myName() method should be called with an assignment statement that is followed by an output statement using innerHTML, or directly called with an output statement using innerHTML

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

More Books

Students also viewed these Databases questions