Build a Loan Qualification Checker - Step 4

Tell us what’s happening:

getLoanMessage in my project and what should i do?
Your getLoanMessage function should return a string if the applicant qualifies for a condo and car loan.

Your code so far


// User Editable Region

function getLoanMessage(annualIncome, creditScore) {  
    // Check if the applicant qualifies for both a condo and a car loan  
    if (annualIncome >= minIncomeForCondo && creditScore >= minCreditScoreForCondo) {  
        return "You qualify for a condo and car loan."; // Return exact string  
    }   
} 

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0

Challenge Information:

Build a Loan Qualification Checker - Step 4

did you delete the if statement that was previously there?

also where is this part:

const minIncomeForDuplex = 60000;
const minCreditScoreForDuplex = 700;

const minIncomeForCondo = 45000;
const minCreditScoreForCondo = 680;

const minIncomeForCar = 30000;
const minCreditScoreForCar = 650;

you should use the reset button to restore the code to the start of the step