about summary refs log tree commit diff
path: root/usth/ICT3.2/prac/2/3.js
blob: 45bd66ee84ef55d6148389a1ea4347e5e0f12b6f (plain) (blame)
1
2
3
4
5
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');