Reference no: EM132254120
Count Number of Words in a String
Provide an input field for the user to enter a string
Implement a button image to execute the counting process
-right and left arrow images attached
The user enters the words into the input field. When a character has been entered into the text field the Right Arrow Button will be enabled.
Once the user has entered the string they will use the Right Arrow Button image to start the counting process. When the user has selected the Right Arrow Button, it will be switched with the Left Arrow Button.
Step through string and count the number of words
- Create a JavaScript Method that accepts the string and counts the words.
- Provide an information message to the user with the count of number of words.
User selects Left Arrow Button to start program over
- Selecting Left Arrow Button will switch to Right Arrow Button