ELSE-IF Statement

 let marks = 75;

if (marks >= 80) {
  console.log("A+");
} else if (marks >= 60) {
  console.log("A");
} else if (marks > 33) {
  console.log("B");
} else if (marks > 26) {
  console.log("C");
}

Comments

Popular posts from this blog

Callback Hell

TODO list with DOM

Refactoring callback hell code