WDV221 Intro JavaScript
Skill Test - Score Counter
Instructions:
- Use the teamNames array to populate the drop down field.
- Create parallel arrays to accumulate team total goals and records.
- The "Update Team" button should:
- Validate that a team was selected. If not, display an error message to the form. Stop the process.
- Validate that the Team Record was selected. If not, display an error message to the form. Stop the process.
- Validate that the Team Goals input is a whole number. If not, use the integer without any decimal values.
- Update the records for the selected team.
- Update the team total goals with the input goals for the selected team.
and record for the selected team.
- The "Display Teams" button should display all the team arrays in the console.
- Update the Copyright statement to always show a current year for YEAR.