Мне нужно создать программу, в которой вы вводите номер 1-100, и выводит класс соответствия, соответствующий вашему счету, и у меня возникли проблемы с отображением приглашения. Вот код:HTML-подсказка() не отображает
function myGrade() {
var Input = prompt("Input grade here:");
if (Input >= 90) {
document.write("The score you entered is "
Input ". Your letter grade is A.");
} else if (Input >= 80 && Input < 90) {
document.write("The score you entered is "
Input ". Your letter grade is B.");
} else if (Input >= 70 && Input < 80) {
document.write("The score you entered is "
Input ". Your letter grade is C.");
} else if (Input >= 60 && Input < 70) {
document.write("The score you entered is "
Input ". Your letter grade is D.");
} else if (Input < 60) {
document.write("The score you entered is "
Input ". Your letter grade is F.");
}
}
Я использую <body onload = "myGrade()">
выше этот фрагмент кода.
Какие ошибки вы обнаружили на консоли? –