1 let score1 = prompt("First score?"); 2 let score2 = prompt("Second score?"); 3 let score3 = prompt("Third score?"); 4 score1 = parseInt(score1); 5 score2 = parseInt(score2); 6 score3 = parseInt(score3); 7 let sum = score1 + score2 + score3; 8 alert("The sum is " + sum); 9 let average = sum / 3; 10 alert("Your average is " + average); 11 12 if (average >= 100) 13 { 14 alert("You got bonus points!"); 15 } 16 else if (average === 100) 17 { 18 alert("That’s perfect!"); 19 } 20 else if (average >= 90) 21 { 22 alert("Wow! Great job!"); 23 } 24 else if (average >= 80) 25 { 26 alert("Nice work!"); 27 } 28 else if (average >= 70) 29 { 30 alert("Good job!"); 31 } 32 else if (average >= 65) 33 { 34 alert("You passes!"); 35 } 36 else if (average >= 55) 37 { 38 alert("You’re really close!"); 39 } 40 else 41 { 42 alert("You didn’t pass. Keep studying."); 43 } 44