Nisha Patel
Problem
I am working on a coding task to coding a Rock, Paper, Scissors game. I have written some functions already to handle computer choice and user choice, and I'm also supposed to write a function to call the other functions and also keep track of the scores.
I am stuck without a way of bringing everything together. This is my code below.
Solution
In your game function you'd need a loop to run a round and save the scores. If you want to end the game enter "exit".
Suggested blogs:
>Javascript Error Solved: Property 'id' does not exist on type 'T'
>Why highlighted table row using class not working in JavaScript?
>How to rename an object key based on the condition in JavaScript?
>How to sort an array based on another array in Javascript?
>Javascript: Modal not closing with a button