Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] Pangram by mortonfox
"use strict";
const ALPHABET = "abcdefghijklmnopqrstuvwxyz".split("");
function checkPangram(text){
// is the given text is a pangram.
text = text.toLowerCase();
return ALPHABET.every(c => text.includes(c));
}
var assert = require('assert');
if (!global.is_checking) {
assert.equal(checkPangram("The quick brown fox jumps over the lazy dog."), true, "brown fox");
assert.equal(checkPangram("ABCDEF"), false, "ABC");
assert.equal(checkPangram("Bored? Craving a pub quiz fix? Why, just come to the Royal Oak!"), true, "Bored?");
console.log("If it is done - it is Done. Go Check is NOW!");
}
July 28, 2017