• + 0 comments
    function getLetter(s) {
      let letter;
      // Write your code here
    
      const i = 0;
      switch (true) {
        case new Set(["a", "e", "i", "o", "u"]).has(s.charAt(i)):
          letter = "A";
          break;
        case new Set(["b", "c", "d", "f", "g"]).has(s.charAt(i)):
          letter = "B";
          break;
        case new Set(["h", "j", "k", "l", "m"]).has(s.charAt(i)):
          letter = "C";
          break;
        default:
          letter = "D";
      }
    
      return letter;
    }