function getLoanMessage(annualIncome, creditScore) {
if (annualIncome >= minIncomeForDuplex && creditScore >= minCreditScoreForDuplex) {
return "You qualify for a duplex, condo, and car loan.";
}
}
The code checker throws the following:
Your getLoanMessage function should return a string.
Doesn’t the return "You qualify for a duplex, condo, and car loan."' line meet this requirement.
I copied your code for that step exactly as you have it there, and it passed the tests.
Try the following, please:
Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.
or - Try the step in incognito or private mode.
or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.
or - Ensure your browser is up-to-date or try a different browser.
Hopefully, one of these actions will work for you.
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. This button only appears if you have tried to submit an answer at least three times.
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.