Build a Loan Qualification Checker - Step 3

Tell us what’s happening:

I have no idea what is wrong… Could anone explain me why this does not work?

Your code so far

const minIncomeForDuplex = 60000;
const minCreditScoreForDuplex = 700;

const minIncomeForCondo = 45000;
const minCreditScoreForCondo = 680;

const minIncomeForCar = 30000;
const minCreditScoreForCar = 650;


// User Editable Region

function getLoanMessage(annualIncome, creditScore) {

 if (annualIncome >= minIncomeForDuplex && annualIncome >= minCreditScoreForDuplex) {
  return "You qualify for a duplex, condo, and car loan."
 };

  else { 
    return "undefined"
  };
};

// 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

Challenge Information:

Build a Loan Qualification Checker - Step 3

Hi. You h aven’t done the second condition correctly. Have a look at what was asked and what you have put:

AND if creditScore is greater than or equal to minCreditScoreForDuplex

There is no need for an else statement here.