I have provided some clarification to your question below. Hope it helps.
var income = 50;
// Firstly, you need to declare income which I have set to 50 in this case//
//You then need to declare creditCheck as a function of income. Note that, return only works within a function. To print to the console outside of a function, make use of console.log()//
var creditCheck = function (income) {
if (income > 100) {
return "You earn a lot of money! You qualify for a credit card.";}
else {
return "Alas, you do not qualify for a credit card. Capitalism is cruel like that.";
}
};
creditCheck(income); //You can execute the function by calling it.//
//The text below shows what was printed to the console upon executing the function//
"Alas, you do not qualify for a credit card. Capitalism is cruel like
that."