Advertisement
PurePureMilk

Stage 9 Level 5

Mar 13th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. var score = promptNum("What was your quiz score (0-100)?");
  2. if (score >= 90) {
  3. console.log("Your quiz grade is an A");
  4. } else if ((score >= 80)) {
  5. console.log("Your quiz grade is a B");
  6. } else if ((score >= 70)) {
  7. console.log("Your quiz grade is a C");
  8. } else if ((score >= 60)) {
  9. console.log("Your quiz grade is a D");
  10. } else {
  11. console.log("Your quiz grade is an F");
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement