Using a language of your preference, write a method that returns the most common character in a string.
Sigiloso
Answer in javascript function findMostChar(str) { var cal = []; str = str.toLowerCase().replace(/\s+/g, ''); function hasValue(s) { for (var i = 0; i a.count) return 1; if(b.count < a.count) return -1; return 0; }) console.log(cal[0]) } findMostChar("you can sort the keys and then retrieve the associated values");