/**
* @param {string[]} sentences
* @return {number}
*/
var mostWordsFound = function (sentences) {
let max = 0;
sentences.forEach((sentence) => {
let words = sentence.split(' ');
max = Math.max(max, words.length);
});
return max;
};
split뒤에 바로 length를 붙여서 사용하면 코드를 줄일수있다.