Answers for "javascript function that make a choice"

1

javascript function that make a choice

function computerplay() {
            choices = ["rock", "paper", "scissors"]
            var ai = choices[Math.floor(Math.random() * choices.length)]
            return ai;
        }
Posted by: Guest on May-20-2020

Code answers related to "javascript function that make a choice"

Code answers related to "Javascript"

Browse Popular Code Answers by Language