문제 링크 : Detect Capital
/** * @param {string} word * @return {boolean} */ var detectCapitalUse = function(word) { return word === word.toUpperCase() || word === word[0] + word.substr(1).toLowerCase(); };