Write a JavaScript program where the program takes a random integer between 1 and 10, and the user is then prompted to input a guess number. The program displays a message "Good Work" if the input matches the guess number otherwise "Not matched".
var a = Number(prompt("enter the value"))
if (a<10){
console.log("good work")
}
else{
console.log("Not match")
}
Comments
Post a Comment