title: Ternary operator should not be used on a single line in Node.js. Why?
body: <p>Consider the following sample codes:</p>
  
  <p><strong>1.Sample</strong></p>
  
  <pre><code>var IsAdminUser = (User.Privileges == AdminPrivileges)
    ? 'yes'
    : 'no';
  console.log(IsAdminUser);
  </code></pre>
  
  <p><strong>2.Sample</strong></p>
  
  <pre><code>var IsAdminUser = (User.Privileges == AdminPrivileges)?'yes': 'no';
  console.log(IsAdminUser);
  </code></pre>
  
  <p>The 2nd sample I am very comfortable with &amp; I code in that style, but it was told that its <a href="https://github.com/felixge/node-style-guide#use-multi-line-ternary-operator" rel="nofollow">wrong way</a> of doing without any supportive reasons.</p>
  
  <p>Why is it recommended not to use a single line ternary operator in Node.js?</p>
  
  <p>Can anyone put some light on the reason why it is so?</p>
  
  <p>Advance Thanks for great help. </p>