Jump to content

Kian3210

New Members
  • Posts

    1
  • Joined

  • Last visited

Kian3210's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Code Submitted: var userChoice = prompt("Do you choose rock, paper, or scissors"); var computerChoice = Math.random(); console.log(computerChoice); if ( 0 <= computerChoice <= 0.33 ) { computerChoice = "rock"; } else if ( 0.34 <= computerChoice <= 0.66) { computerChoice = "paper"; } else ( 0.67 <= computerChoice <= 1) { computerChoice = "scissors"; } Any help is appreciated. Regard Lamm Peterson
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.