Question: it has to be done in javascript 3 Create a function named function updateScoreTallyI(){...} Modify the #score paragraph. It should look something like this :

it has to be done in javascript

it has to be done in javascript 3 Create a function named

3 Create a function named function updateScoreTallyI(){...} Modify the #score paragraph. It should look something like this : v CPU: j.e. if username is Ben and the userScore is 3 and the cpuscore is 5, it would change the scoreParagraph to Ben: 3 v CPU: 5 you can get the username , and score object from the game object. game.username , game.score 4 Create a function named function updateGameHistoryUI(){...} it makes use of the class property gameHistoryLog. it clears the current game history paragraph and replaces it with the content of the array. 5 add an Event Listener to the go-button on the click event. get the user Selection from the select call the play(user Selection) of the game object. update the text of scoreParagraph using the updateScoreTallyUI() function update the gameHistoryParagraph using the updateGameHistoryUI() function . 3 Create a function named function updateScoreTallyI(){...} Modify the #score paragraph. It should look something like this : v CPU: j.e. if username is Ben and the userScore is 3 and the cpuscore is 5, it would change the scoreParagraph to Ben: 3 v CPU: 5 you can get the username , and score object from the game object. game.username , game.score 4 Create a function named function updateGameHistoryUI(){...} it makes use of the class property gameHistoryLog. it clears the current game history paragraph and replaces it with the content of the array. 5 add an Event Listener to the go-button on the click event. get the user Selection from the select call the play(user Selection) of the game object. update the text of scoreParagraph using the updateScoreTallyUI() function update the gameHistoryParagraph using the updateGameHistoryUI() function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!