Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions: In the script below, replace each comment 1 ) - 1 0 ) with one or two lines of code each. The resulting output
Instructions:
In the script below, replace each comment with one or two lines of code each. The resulting output should match the sample output in the block comment. The final line of output may vary.
When you get the correct results, upload your finished code to the Dropbox.
Code to Finish
sDOCTYPE htmls
chtmis
sbady
ep id"demo"s:
Put "Everett" on the ride hand end of Metro.
autputMetro.toStringl:
Put Federal Way on the left hand end of Metra.
autputMetra.toStringll sbr;
Alphabetize Metro.
autputMetro.toStringl:
Remave the bst element on the right hand side of Metro.
autputMetra.toStringlsbrs;
Replace Krkbland and Mercer tsland with Tukwib.
autputMetro.toStringl:
B Place Metro into reverse alphobetical croler.
autputMetra.toStringll ;
Sort Metro at random.
autputMetro.toStringl:
Test code
document.getElementByld,"demo"innerHTML sFinish This!
I" Sample Output last line may vary
Seattle, Belkevue,Kirkland,Mercer bland, Tacoma Sumner, Puyallup
Seattle. Bellevue,Kirkband,Mercer tatand.Tscoma Sumner, Puyallup, Everett
Federal Way,Seatte,Bellevve,Kirkband,Mercer Island,Tacama,Sumner,Puyallup, Everett
Belkevue, Everett.Federal Way,Kirkland, Mercer Island,Puyalkup, Seattle.Sumner,Tacoma
Belkevue, Everett,Federal Way,Kirkband, Mercer Bland, Puyallap Seattle Sumner
Belkevue, Everett.Fedenal Way,Tukwila, Puyallup,Seattle,Sumner
Tukwila,Sumner,Seattle,Puyallup,Federal Woy,Everett,Bellewue
Seattle. Federal Way,Sumner,Puyallup,Everett,Tuswila Bellevue
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