Code Lab

All letters of the alphabet

EasyMap and Set3 min

Write a function isPangram(sentence). It takes a string of lower-case Latin letters and returns true if it has every one of the 26 letters of the alphabet. Otherwise return false.

Examples

isPangram('thequickbrownfoxjumpsoverthelazydog')

Returns true

isPangram('leetcode')

Returns false

The letter `a`, for one, is missing.

Source

Loading the editor...
  1. InputisPangram('thequickbrownfoxjumpsoverthelazydog')
    Expectedtrue
  2. InputisPangram('leetcode')
    Expectedfalse
  3. InputisPangram('abcdefghijklmnopqrstuvwxyz')
    Expectedtrue

Hidden tests run on Submit.