Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an HTML file named challengeme.html . Using a constructor, implement a Person object with the following properties and methods: fname lname age introduceSelf() ->

Create an HTML file named challengeme.html.

Using a constructor, implement a Person object with the following properties and methods:

fname

lname

age

introduceSelf() -> displays: Hi my name is . Nice to meet you!

getAge() -> displays: I am years old.

talk(sentence) -> Displays: the content of sentence

Create 3 new instances using your object Person. Kid1, kid2 and teen1. Define their first names, last names, ages and call the methods when applicable, see output below:

image text in transcribed

Hi! My name is Will Smith. Nice to meet you! I am 10 years old. Hi! My name is Michelle Jones. Nice to meet you! I am 12 years old. Hi! My name is Peter Parker. Nice to meet you! My favorite quote is: "With great power comes great responsibility

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_2

Step: 3

blur-text-image_3

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

Students also viewed these Databases questions

Question

17 Develop, implement, and evaluate succession planning process.

Answered: 1 week ago