Could someone help me with this problem? i am trying to return random strings from an array. here is my code:
function getComputerChoice() {
const Mystring = ['rock', 'paper', 'scissors'];
const random = Math.floor(Math.random() * 3);
}
console.log(getComputerChoice());
I declared my variables: "Mystring" which contains the array of strings and "random" that contains the Math.random() function but am lost on the next steps. Would really appreciate if someones points me in the right direction.