Skip to content

Instantly share code, notes, and snippets.

@87Ryu
87Ryu / script.number-guesser.js
Created August 24, 2023 05:23
Number guesser
let humanScore = 0;
let computerScore = 0;
let currentRoundNumber = 1;
// Write your code below:
//1st step
function generateTarget() {
return Math.floor(Math.random() * 10);
}
console.log(generateTarget());