Skip to content

Commit

Permalink
Update description.ru.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim-Kvashnin authored and zhabinka committed Feb 18, 2021
1 parent 30b9ddb commit 54f5f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/48-conditionals/40-if-else/description.ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ theory: |
}
return `${sentenceType} sentence`;
}
};
```
Мы добавили ключевое слово `else` и новый блок с фигурными скобками. Этот блок выполнится, только если условие в `if` — ложь.
Expand All @@ -44,7 +44,7 @@ theory: |
}
return `${sentenceType} sentence`;
}
};
```
Какой способ предпочтительнее? Человеческому мозгу проще мыслить прямолинейно, а не через отрицание. Старайтесь выбирать проверку, которая не содержит отрицаний, и подстраивайте содержимое блоков под неё.
Expand Down

0 comments on commit 54f5f78

Please sign in to comment.