Help! I Need JavaScript Help Please

Discussion in 'Technology Talk & Help' started by LegitimateCheese, Nov 10, 2013.

Thread Status:
Not open for further replies.
  1. I need help again and I'm sure this will happen many times in the near future.
    So I was told to create a compare function for the two choices in this rock paper scissors code. It says it doesn't return the result is a tie, but it shows up twice (which is also a problem.) Any help is appreciated.
    [​IMG]
     
    Posted Nov 10, 2013
    #1
  2. Maddog

    Maddog

    547
    72
    8
    I can't read this, got a text version?
     
    Posted Aug 16, 2014
    #2
  3. Maddog

    Maddog

    547
    72
    8
    Nevermind :
    function compare(comp1,comp2) {
    if(comp1 == comp2) { return true;}
    return false;
    }
     
    Posted Aug 16, 2014
    #3
Thread Status:
Not open for further replies.