Hack Frontend Community

Check for Pangram

Yandex
Write a function isPangram(sentence) that checks if a string is a pangram.
  • - A pangram is a string that contains every letter of the alphabet at least once.
  • - The string can contain non-letter characters, which should be ignored.

Examples:

Input 1: "the"
Output 1: false
Input 2: "TheQuickBrownFoxJumpsOverTheLazyDog"
Output 2: true
Run your code to see results.