What Am I doing Wrong?

Discussion in 'Gaming' started by HanaY, Jan 16, 2014.

  1. yus ;)
  2. Here, this is what I wrote in my lesson, I hope it helps. :)


    Code:
    // Write your function below.
    // Don't forget to call your function!
    var creditCheck = function creditCheck(income) {
        if (income >= 100) {
            return "You earn a lot of money! You qualify for a credit card.";
        }
        else if (income < 100) {
            return "Alas you do not qualify for a credit card. Capitalism is cruel like that.";
        }
    };
    console.log(creditCheck(75));
    console.log(creditCheck(125));
    console.log(creditCheck(100));
    Pab10S likes this.
  3. oh, console.log >.< I forgot about that, lol (too used to return now)
    EDIT: aaaaand finished. Thanks Max :D
    EDIT2: Now for rock paper scissors... uh oh, and i might add lizards and spock xD
    mba2012, Gadget_AD and Pab10S like this.