We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
//Javascriptfunctionpangrams(s){// Write your code here//remove space between words and lower case all charatersvarremove_space=s.trim().split(" ").join("").toLowerCase();//remove duplicate charatersvareach_charater=remove_space.split('');varuniqueChars=[...newSet(each_charater)];// count numbers of charaters varcount=uniqueChars.length;if(count==26){return'pangram';}else{return'notpangram';}}
Cookie support is required to access HackerRank
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 →