Answered step by step
Verified Expert Solution
Question
1 Approved Answer
E. Practice #4 Create a new HTHL page (Practice4 html) from your template Within your HTML page create a form that supports the following data
E. Practice #4 Create a new HTHL page (Practice4 html) from your template Within your HTML page create a form that supports the following data entry: First Name: Last Name: Address: City: Province: text box text box text box text box text box Add a button that displays Add Account Add a div outputStuff) that can be used for display purposes Create the following arrays: months (short form of all months- Jan, Feb, ...) days (days of the week Sun, Mon,...) Add a JavaScript constructor function called AccountType which can be used to create account objects. Your constructor function will need to handle 5 parameters that wil1 map to the 5 text boxes. In addition, the object constructor should ereate a datecreated property based on the current date Create an event handler function for the Add Account button called addAccount This function should do the following things create a new account object 2. include a formatted dateCreated property (DDD MMM dd, YYY Example Thu Nov 30, 2017) 3. take the object and output all 6 properties to the outputStuff div var myDate new Date(O var year myDate.getFullYear) var month myDate.getMonth)i var dayofWeek myDate.getDayO var dayOfMonth myDate.getDate() var hourofDay myDate.getHoursO Reflect in ePortfolio
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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