Professional Documents
Culture Documents
Work Responsibilities and Functions
Work Responsibilities and Functions
form.addEventListener – prevents the form from auto submitting. This function is called when
the user press the register button which in turn calls the register function.
setErrorFor(input, message) – Accepts the input of the field being validated and a message to
setSuccessFor(input) – accepts only an input field to confirm that it has met the requirements of
setAge() – used to calculate the age of the user. This function is called in the register function
Register() – used to validate the information the user enters into the form. It stores the user’s
information in an array called PlayerData if all validations are met. After which it allows the user
PlayGame() – called when the user begins the game and is used to display the values that the
user is supposed to use to achieve a particular answer based on the arithmetic operator displayed.
CheckAnswer() – used to check the users answer and displays a message to tell the user if the
answer entered was correct. It is also responsible for disabling/enabling or hiding/unhiding a few
buttons. It also calls the showall() function inside it’s body. This function is called when the
findPercentageScore() – finds the percentage score of a user and displays particular information
showAll() – responsible for displaying all the data collected about each user and the questions
they completed and their scores. It is the final function in ending the game as it deletes all
showfreq() – function is used to gage the range to which each bar spreads to represent the charts
Playagain() – function used to allow the user to restart the game and play again as it accepts the
data of the next player into the PlayerData array. This function I called when the play again
button is pressed.
reconfigureForm() – function used to reset the webpage and empty all information collection on
group leader
Responsibilities
Tasks Description
the webpage.
project
4
Responsibilities
Tasks Description
10am
group leader
Responsibilities
Tasks Description
function
11, 12, 13, 14 Created and styled show all players section.
using JavaScript.
webpage
6
Responsibilities
Tasks Description
~General HTML Created website story board for the entire forms
percentage score.
Editing videography.