const compareFirstLetters = (word1, word2) => { if (word1.charAt(0) === word2.charAt(0)) { console.log('Совпадают') } else { console.log('Не совпадают') } }