JavaScript Algorithm: Pangrams

Max N
Level Up Coding
Published in
3 min readFeb 27, 2020

--

For today’s algorithm, we are going to write a function called pangrams that will take one string, s as input.

A pangram is a sentence that contains every letter of the alphabet. The goal of this function is to determine if the sentence given is a pangram or not. If it is not a pangram, the function will return not pangram. If it is a pangram, the function will return pangram. Here is an example:

--

--

A writer that writes about JavaScript and Python to beginners. If you find my articles helpful, feel free to follow.