Build a Loan Qualification Checker - Step 5

Tell us what’s happening:

What should I do ? The instruction given is just this and I am not able to find out what to write in the code at this step…
Instruction:-
Now, you should check if the applicant is qualified for a car loan only. If they’re, return the string “You qualify for a car loan.”.

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{
  "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/132.0.0.0 Safari/537.36

Challenge Information:

Build a Loan Qualification Checker - Step 5

Hi there! Look at that previous code. In the previous couple of challenges, the curriculum has showed you how to set a cartain condition to meet the requirements. Now it’s your test for the current challenge to make a comparison using else if condition that’s check for truthiness for qualifying for car loan.

Also you need to return that below string. You currently aren’t returning it.

I am sorry but I still don’t get what to write in order for my code to pass this step

Reset the challenge step and add an else if statement after your last else if block {}. Then within the new else if () condition braces write a condition the check, if the creditScore is more than or equal to minCreditScoreForCar and return the string within the new else if block {}

Thank you so much . It worked !!!