Answered step by step
Verified Expert Solution
Link Copied!

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 1)-10) 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.
autput+-Metro.toStringl)+"":
Put Federal Way on the left hand end of Metra.
autput+-Metra.toStringll +"sbr>";
Alphabetize Metro.
autput+-Metro.toStringl|+"":
Remave the bst element on the right hand side of Metro.
autput+-Metra.toStringl}+"sbrs";
Replace Krkbland and Mercer tsland with Tukwib.
autput+-Metro.toStringl|+"":
8B) Place Metro into reverse alphobetical croler.
autput+-Metra.toStringll +"";
Sort Metro at random.
autput+-Metro.toStringl|+"":
810 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
%
image text in transcribed

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

Step: 3

blur-text-image

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

Beginning Apache Cassandra Development

Authors: Vivek Mishra

1st Edition

1484201426, 9781484201428

More Books

Students also viewed these Databases questions

Question

1. Send the student on an errand, or ask him or her for help.

Answered: 1 week ago

Question

How should a consultant be selected?

Answered: 1 week ago

Question

Why is a consulting contract needed?

Answered: 1 week ago