Created
March 31, 2021 22:09
-
-
Save jamiejohnsonkc/c58e82c911b50e99fe720b48e71cd33e to your computer and use it in GitHub Desktop.
random string from array #JS_random_string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const movesArray = ['rock', 'paper', 'scissors'] | |
const rand = movesArray[Math.floor(Math.random() * movesArray.length)] | |
console.log(rand) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment