You are viewing a single comment's thread. Return to all comments →
function pangrams(s) { let str = s.toLowerCase(); str = str.split(" ").join(""); let obj = {}; let count = 0 for(let i=0; i<str.length; i++){ let x = str[i]; if(obj[x] == undefined){ obj[x] = 1 count++ } } if(count == 26){ return "pangram" } return "not pangram" }
Seems like cookies are disabled on this browser, please enable them to open this website
Pangrams
You are viewing a single comment's thread. Return to all comments →