Morgan & Morgan interview question

Please write a function that accepts a string and returns a boolean value that is true if, and only if, the string contains all characters in the alphabet. Eg:  console.log(isPangram(‘The quick brown fox jumps over the lazy dog’)); // true console.log(isPangram(‘happy birthday to you!’); // false //brutal Check each character for indexOf in dictionary array of all letters a-z Function check(x) {   let alpha = [‘a’, ‘b’ …]   For (a in alpha) {     if(x.indexOf(‘t’) == -1)) {       Return false;     }    Return true; } //go 2 Function check(x){   Set alpha = [a,b,c…]   Let pusher = new Set()   For(var i =0; i++; i<x.length){    If (currentCha is a-z) {     pusher.push(x.charAt(i)) If set.length === 26 return true   }        }   Let alpha = [‘a’, ‘b’...]   } Return false }