Build a Loan Qualification Checker - Step 5

Tell us what’s happening:

I did the else if condition, I did it according to the loan and annual income and I did it according to the last 2 values, but I could not pass the test, what should I do, I return it in a string value, but it did not accept it, I wonder what I should do.

Your code so far

const minIncomeForDuplex = 60000;
const minCreditScoreForDuplex = 700;

const minIncomeForCondo = 45000;
const minCreditScoreForCondo = 680;

const minIncomeForCar = 30000;
const minCreditScoreForCar = 650;

function getLoanMessage(annualIncome, creditScore) {
  if(creditScore >= minCreditScoreForDuplex && annualIncome >= minIncomeForDuplex) {
    return "You qualify for a duplex, condo, and car loan."
  } else if (annualIncome >= minIncomeForCondo && creditScore >= minCreditScoreForCondo) {
    return "You qualify for a condo and car loan."

// User Editable Region

  }else if (annualIncome >= minIncomeForCar && creaditScore >= minCreditScoreForCar){
    return "You qualify for a car loan."
  }


// 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/131.0.0.0 Safari/537.36 OPR/116.0.0.0

Challenge Information:

Build a Loan Qualification Checker - Step 5

Hi there and welcome to our community!

You have a typo in one of your variable names here:

ı already do it thank you so much

1 Like