Problem in Part 2


#1

please can you help me?
when i use the code it doesnt put rock, paper or scissor it appears a number.
whats wrong with my code?
thanks

var userChoice=prompt ("Do you choose rock, paper or scissors?")
var computerChoice=Math.random()
console.log (computerChoice)
if (computerChoice <= 0.33) {
computerChoice="rock";
console.log("rock");
}
else if (computerChoice < 0.66) {
computerChoice="paper";
console.log("paper");
}
else {
computerChoice="scissors";
console.log("sccisors");
}


#2

Well I see a number and rock, paper or scissors which is fine as this is what you print to the console:

var computerChoice=Math.random()
console.log (computerChoice)

This is the number.

if (computerChoice <= 0.33) {
    computerChoice="rock";
    console.log("rock");
}
else if (computerChoice < 0.66) {
    computerChoice="paper";
    console.log("paper");
}
else {
    computerChoice="scissors";
    console.log("sccisors");
}

and this is the string.