WDV221 Intro Javascript
Skill Test - Lookup and Accumulate Arrays
Instructions:
1. Use the onFocus event handler on the Team Name field. The following effects should happen:
- The Team Score field is cleared
- The Current Status display area is cleared
- Change the background color of the input area to light blue
2. The Reset button should have the following effects:
- Clear the current status display
- Return the Team Name input area to original color
- Reset the form fields to their default values
3. Modify the processTeamNames( ) so that when you enter a team that is not in the teamNames do the following:
- change the Team Name input area to red
- Add the new team name to the teamNames array
- Add a new row to the teamScores array
- Display the new team and its score in Current Status
4. Add a button that will display all the teams and their current score to the page.
Extra Credit:
- Highlight the team with the highest score.
- Display the teams from high score to low score