Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
/******
* Update the program below to test for two additional conditions:
  - If student has scored greater than or equal to 70, then print "You earned a C"
  - If student has scored greater than or equal to 60, then print "You earned a D, do better next time"
  - If the student scored below 60, then print "Unfortunately, you have failed that course will need to retake it next semester"
*******/
let yourGrade = 84
if (yourGrade >= 90) {
  console.log("Congrats your score is 90 or above, that's an A!")
} else if (yourGrade >= 80) {
  console.log("Congrats your score is 80 or above, you earned a B")
} else {
  
  console.log("Your score is less than 80, no bueno")
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x