diff --git a/README.md b/README.md index ee02c0e97c..556e874c17 100644 --- a/README.md +++ b/README.md @@ -2175,6 +2175,20 @@ Other Style Guides } ``` + + - [17.2](#control-statements--value-selection) Don't use selection operators in place of control statements. + + + ```javascript + // bad + !isRunning && startRunning(); + + // good + if (!isRunning) { + startRunning(); + } + ``` + **[⬆ back to top](#table-of-contents)** ## Comments