2114. Maximum Number of Words Found in Sentences
var mostWordsFound = function(sentences) {
const result = [];
for(let i = 0; i < sentences.length; i++){
result.push(sentences[i].split(' ').length);
}
result.sort((a, b) => b - a);
return result[0]
};
연락 부탁 드리겠습니다. sam.joung@thelabs.kr