Question
I am having a little trouble comprehending what question number 4 below is asking. It says 4. Copy exercise3.html and name it exercise4.html. Revise FormatName
I am having a little trouble comprehending what question number 4 below is asking. It says 4. Copy exercise3.html and name it exercise4.html. Revise FormatName so that it uses three variables, one for each part of the users full name.
Here is the code I had for exercise 3
Full Name Formatter
Enter your full name:
onclick="format()">
function format(){
document.getElementById('outputDiv').innerHTML = 'Name entered:' + ' ' + document.getElementById('First Name').value + ' ' + document.getElementById('Initial').value + ' ' + document.getElementById('Last Name').value+" ";
document.getElementById('outputDiv').innerHTML+='Name formatted:' + ' ' + document.getElementById('Last Name').value+"," + ' ' + document.getElementById('First Name').value + ' ' + document.getElementById('Initial').value
}
What and where do I need to revise so the code will fit with what the question is asking?
AutoSave Off assignment Search Dylan Miller DM 0 X File Home Insert Draw Design Layout References Mailings Review View Help Share Comments Calibri 11 A A Aar av == = = [ X Cut LECopy Format Painter 1 No Spac... Heading 7 Subtle Em... Emphasis Find c Replace Select Paste BIU ab X, X ADA = 1 Title Dictate Sensitivity Clipboard Font Editing Voice Sensitivity Paragraph Styles 1. LITLI XLIII.1. Hir.2...T.3.LITI.4LITHI.5. III.6.1.XII.7.1 HStep 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