JavaScript:实现给定一个句子,返回出现次数最多的单词算法
// Given a sentence, return the most occurring word
/**
* @param {string} sentence - the sentence you want to find the most occurring word
* @returns {string} - the most occurring word
*
* @example
*/
const maxWord = (sentence = '') => {
if (