Tell us what’s happening:
I believe I’ve answered what the step is asking me. This is the error that keeps coming up:
- Your getLoanMessage function should return undefined if the applicant’s annual income and credit score do not meet the requirements for a duplex loan.
Since that wasn’t in the original instructions, I am at a loss how to complete this.
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 && creditScore >= minCreditScoreForDuplex);
return "You qualify for a duplex, condo, and 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/136.0.0.0 Safari/537.36
Challenge Information:
Build a Loan Qualification Checker - Step 3