This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Elijah Abiade
almost 9 years

What am i doing wrong? HELP! Oops, try again. Did you remember to log computerChoice to the console?

var userChoice= prompt(“Do you choose rock,paper or scissors?”); var computerChoice=Math.random() console.log(“computerChoice”);

Answer 5542a61295e378f9620002c1

1 vote

Permalink

don’t use quotes for printing out computerChoice variable value: console.log (computerChoice); — this will work.

Use quotes when you log a string to the console: console.log (“Use quotes in this case”).

computerChoice is a variable that does not require quotes.

points
Submitted by Kristina
almost 9 years

1 comments

Elijah Abiade almost 9 years

thank you verry much ::P lol i figured it out after hitting my self on the head lol

Answer 556dca34e39efef33a0005b9

0 votes

Permalink

very helpful. thanks

points
Submitted by gyadav
almost 9 years