js random word generator
var word = ['Rock', 'Paper', 'Scissor'];
var words = word[Math.floor(Math.random()*word.length)];
alert('The computer chose:' + word);
// Be sure to add more to the string values if you wish to add more words.
js random word generator
var word = ['Rock', 'Paper', 'Scissor'];
var words = word[Math.floor(Math.random()*word.length)];
alert('The computer chose:' + word);
// Be sure to add more to the string values if you wish to add more words.
javascript random word
// function for selecting a random index from an array
const pickOne = (arr) => arr[Math.floor(Math.random() * arr.length)];
let choice = pickOne(["Apple", "Banana", "Orange"]);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us