9.10 Word Ordering Web Page

In this section, we put into practice what you’ve learned in the previous two sections by examining a web page that uses (1) an “if, else if, else” form of the if statement and (2) various string operations. See the web page in FIGURE 9.13. The user enters two words, clicks the < button, and the web page sorts the words.

FIGURE 9.13 Word Ordering web page after typing words into the text controls and after clicking the < button

To start our examination of the Word Ordering web page, let’s look at FIGURE 9.14A ...

Get Web Programming with HTML5, CSS, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.