I'm attempting to debug this for a course on Codecademy and can't find what I'm doing wrong. If anyone could help it would be immensely helpful. Thank you for taking the time to read this message. Here's the code:
var userChoice = function (string) {
userChoice(window.prompt("Do you choose rock, paper, or scissors?"));
}
var computerChoice = Math.random();
console.log(computerChoice)
if (computerChoice === 0 to 0.33) {
console.log("rock")
} else if (computerChoice === 0.34 to 0.66) {
console.log("paper")
} else if (computerChoice === 0.67 to 1) {
console.log("scissors")
}