JSFiddle - React, Tailwind, and code Playground
by LyndseyB
JavaScript
function log() {
var i, log;
for(i = 0; i<arguments.length; i++) {
log+=console.log('log:' + arguments[i]);
}
return log;
}
var anagrams = {
dictionary: ["PARK", "CAPE", "SACK", "CARE", "EACH", "HAED", "TEPA", "AMEN", "ANTE", "ARCH", "ALOE"],
noLetters: 4,
roundTime: 30,
getAnagram: function() {
return this.dictionary[Math.floor(Math.random()*this.dictionary.length)];
}
};
$(