const WEIGHT = Math.trunc(Math.random() * 10); const GUESS = Math.trunc(Number( prompt('Guess the weight of the marrow (1-10)'))); alert(GUESS == WEIGHT ? 'Good Work' : 'Not Matched');