So I have been actually trying to learn to code at this CodeAcademy website a friend redirected me to and I just did something stupid and so something's wrong and I don't know what I did wrong...
var creditCheck = function(income) {
if (income>=100) {
console.log("You earn a lot of money! You qualify for a credit card.");
} else {
console.log("Alas you do not qualify for a credit card. Capitalism is cruel like that.");
}
};
creditCheck(75)
creditCheck(125)
creditCheck(100)
Basically the goal is to create a code where if the income is greater than 100, it prints one thing, and if it doesn't, it prints the other. And then to shove in some example parameters. But for some reason it's also printing the result for what I suppose would be "income" itself and I don't know how to stop that.
So yeah, sorry if it seems really stupid... but I'd really appreciate help.