We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b37a7 commit 6a16689Copy full SHA for 6a16689
bin/brain-even.js
@@ -21,8 +21,7 @@ while (correctAnswersCount < 3) {
21
const getAnswer = readlineSync.question('Your answer: ');
22
23
// проверяем четность
24
- const checkEvenness = (number) => (number % 2 === 0 ? 'yes' : 'no') // Возвращаем 'yes', если четное, иначе 'no'
25
- ;
+ const checkEvenness = (number) => (number % 2 === 0 ? 'yes' : 'no'); // Возвращаем 'yes', если четное, иначе 'no'
26
27
// Получаем правильный ответ
28
const correctAnswer = checkEvenness(getRandomNumber);
0 commit comments