You just need to get the value of the select, like this:
var UserOption = document.getElementById('UserSelect').value; Then you can get the name from the options array like this:
console.log(options[UserOption-1]) Working Snippet
function Play() { var option = ["Rock", "Paper", "Scissors"]; var randomOption = option[Math.floor(Math.random()*option.length)]; var UserOption = document.getElementById('UserSelect').value; console.log("Player:" +option[UserOption-1] + " vs ConputerComputer:" + randomOption ); } <body> <div class="form-group"> <select class="form-control" id="UserSelect"> <option value="1">Rock</option> <option value="2">Paper</option> <option value="3">Scissors</option> </select> </div> <button class="play" onclick="Play();">Play</button> </body>