Operator perbandingan bersarang di JavaScript

var myBudget = 100;
var foodCost = 80;
var isfoodDelicious = true;

if (myBudget > foodCost) {
    if (isfoodDelicious == true) {
        console.log("I can buy this food")
    }
} else {
    console.log("I buy this food later")
}

//output: I can buy this food
Ariful Islam Adil(Code Lover)