Checking if a given string is Pangram in JavaScript | JavaScript Coding Interview Question
▬▬▬▬▬▬ T I M E S T A M P S ▬▬▬▬▬▬ What is a Pangram | 00:00 Solving Pangram challenge | 00:15 ▬▬ How to check if a given string is a Pangram ▬▬ 1. Make a string case-insensitive using toLowerCase() 2. Iterate through all letters of the alphabet using 'for of' 3. Check each character of the string calling indexOf() indexOf() returns -1 when passed letters of the alphabet are not found in the string 4. return 'false' if the letter of the alphabet is not found in the string otherwise return 'true'
▬▬▬▬▬▬ T I M E S T A M P S ▬▬▬▬▬▬ What is a Pangram | 00:00 Solving Pangram challenge | 00:15 ▬▬ How to check if a given string is a Pangram ▬▬ 1. Make a string case-insensitive using toLowerCase() 2. Iterate through all letters of the alphabet using 'for of' 3. Check each character of the string calling indexOf() indexOf() returns -1 when passed letters of the alphabet are not found in the string 4. return 'false' if the letter of the alphabet is not found in the string otherwise return 'true'