Build a Loan Qualification Checker - Step 3

Tell us what’s happening:

I just cant seem to grasp what i am missing/have done wrong. Any tips?

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6.1 Mobile/15E148 Safari/604.1

Challenge Information:

Build a Loan Qualification Checker - Step 3

This is the structure of an empty function:

function myFunction() {
   // some code here
}

Can you see what yours is missing?

1 Like

Thank you ever so much.
Its always the little things that throw me.