Tell us what’s happening:
getLoanMessage in my project and what should i do?
Your getLoanMessage
function should return a string if the applicant qualifies for a condo and car loan.
Your code so far
// User Editable Region
function getLoanMessage(annualIncome, creditScore) {
// Check if the applicant qualifies for both a condo and a car loan
if (annualIncome >= minIncomeForCondo && creditScore >= minCreditScoreForCondo) {
return "You qualify for a condo and car loan."; // Return exact string
}
}
// 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/135.0.0.0 Safari/537.36 Edg/135.0.0.0
Challenge Information:
Build a Loan Qualification Checker - Step 4