Ad
  • Default User Avatar

    if they have the same weight,ypu have to compare them according string ascii code

  • Default User Avatar
    function checkCoupon(enteredCode, correctCode, currentDate, expirationDate) {
      console.log(`enteredCode    = ${enteredCode}`);
      console.log(`correctCode    = ${correctCode}`);
      console.log(`currentDate    = ${currentDate}`);
      console.log(`expirationDate = ${expirationDate}`);
    }
    
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution