percabangan dengan java script

 <!DOCTYPE html>

<html>
    <body>
<script>
    var nilai="85";
    let greeting;

    if (nilai >90) {
        greeting = "excelent";
    }else if(nilai>80){
        greeting="baik";
    }else if(nilai > 75){
        greeting="cukup";
    }
    else {greeting="kurang"}
    document.write(greeting);
    </script>
maka outputnya

Komentar