Tell us what’s happening:
I don’t understand why this isn’t working here? did I spell something wrong?
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) {
// User Editable Region
if (annualIncome >= minIncomeForDuplex && creditScore >= minCreditScoreForDuplex ) {return "You qualify for a duplex, condo and a car loan."};
// User Editable Region
};
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0
Challenge Information:
Build a Loan Qualification Checker - Step 3
GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-loan-qualification-checker/66c8ba975ee7230e29f6c4ad.md at main · freeCodeCamp/freeCodeCamp · GitHub
Yes, you need to add comma after ‘condo’. and remove ‘a’ after ‘condo and’.
Correct message is You qualify for a duplex, condo, and car loan.
oh oops. How did I miss that?!
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 (creditScore >= minCreditScoreForCondo && annualIncome >= minIncomeForCodo) { return "You qualify for a condo and car loan." }
};
}
I’m not getting any results in the console either.
There’s no closing bracket before the else if statement.
still doesn’t work. maybe next time test it yourself. /lighthearted.
Please remove this in the else if statement. And double check brackets too.
ILM
June 11, 2026, 8:38am
9
please use the help button on step 4
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.
The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
Thank you.
I would just like to let you know that this is my topic unless someone else had commented but the comment/reply got deleted.
this worked thank you so much!
ILM
June 11, 2026, 4:26pm
13
You opened this topic for help with step 3, for step please open a different topic