Why aren’t we adding a parameter to the playGame() function so that we can invoke it as an argument like so?
const playGame = (choice) => {
let userChoice = getUserChoice(choice);
let computerChoice = getComputerChoice();
console.log(You threw: ${userChoice}!
);
console.log(The computer threw: ${computerChoice}!
);
// Prints to see who won
console.log(determineWinner(userChoice, computerChoice));
}
// Start the Game
playGame(‘scissors’);
I feel like it makes more sense to call the playGame() function this way ?