DEV Community

Dinesh G
Dinesh G

Posted on

My Java Full Stack Journey Learning in JavaScript

Day five class in JavaScript. I shared the topics, What I learn Today.

Mark greater than or equal to so give grade
-no grade

Flow chart

Eg:

javascript
let mark = ?; // Replace ? with actual mark value

if (mark >= 50) {
    if (mark >= 90) {
        console.log("A+");
    } else if (mark >= 75) {
        console.log("A");
    } else {
        console.log("B");
    }
} else {
    console.log("No Grade");
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)