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