when the HTML page loads, a prompt dialog box appears, which prompts the user to enter a number between 0 and 100. If the entered number is less than 50 - then an alert dialog box is displayed from message "unsatisfactory", if the number is between 50 and 70 - "satisfactory", from 71 to 87 - "good", from 88 to 100 - "excellent".
a = +prompt('Введіть число 0-100');
if (a < 50) {
alert('«unsatisfactory')
}
else if (51 < a < 70) {
alert('satisfactory')
}
else if (a < 71 < 87) {
alert('good')
}
else if (88 < a < 100) {
alert('excellent')
}