text: function playingCards(face, suit) {
      let validFaces = ["2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"];
      let validSuits = {S: "\u2660", H: "\u2665", D: "\u2666", C: "\u2663"};
  
      if (!validFaces.includes(face.toString())) {
          throw new Error("Error");
      } else if (!Object.keys(validSuits).includes(suit.toString())) {
          throw new Error("Error");
      }
  
      return face + validSuits[suit];
  }
  
  console.log(playingCards('A', 'S'));
  console.log(playingCards('10', 'H'));
  console.log(playingCards('1', 'C'));