Ad
  • Default User Avatar

    It will works if every number rise to power and than compare with 285.

  • Default User Avatar

    Because of the check code. I just spent about 30 minutes trying to figure this out - The types of the two check codes appear to be different so I had to use === rather than == to check them. Then it worked.

  • Default User Avatar

    The result of 8'th test is:
    currentDate = September 5, 2014
    expirationDate = September 25, 2014
    Date.parse(currentDate) = 1409875200000
    Date.parse(expirationDate) = 1411603200000
    enteredCode str= 2
    correctCode str= 2
    Expected: false, instead got: true

    Why is it expecting false????