title: How to write ELSE IF using ? : in javascript
body: <p>I tried if else in javascript using ? : 
  Ex :   <code>(i &gt; 0 ? 'test': 'test1')</code></p>
  
  <p>But i need 
  <code>if() {  }</code>
  <code>esle if() {  }</code>
  <code>else if() { }</code>
  <code>else (){  }</code>
  using ? : operators 
  <strong>Reason am using operators is am appending the table in Jquery so i need to write the logic in between append statements</strong></p>
  
  <p><strong>can any one help me in this</strong> </p>