Question: could you complete all code index.html,main.js and Person.js files for following output please don't copy paste others answer 3 input boxes 1 input box with

could you complete all code index.html,main.js and Person.js files for following output

please don't copy paste others answer

3 input boxes

1 input box with a placeholder of First Name

1 input box with a placeholder of Last Name

1 input box with a placeholder of Age

A button named Submit (5pts)

A person Class is appropriately created

When the Submit button is clicked, a new Person object is created using the data input into the input boxes.

The Person object has a firstName, lastName, and age.

When the Submit button is clicked, a message should display showing the new objects firstName, LastName, and age

could you complete all code index.html,main.js and Person.js files for following output

index.html

replit

Person.js

/* in this file, write your person class to be exported to your main.js file take care not to unintentionally change the name of the class or the export statement!!! */

class Person { }

export default Person;

main.js

import Person from "./Person.js"; /* Here you will write your the functionality for your webpage

I have already written the import and export statements for the Person class, so once you have it written in the other file it should be available here */

Input your information Hello, Tom Cruise! You are 59 years old. Input your information Hello, Tom Cruise! You are 59 years old

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!