title: How to interpret this conditional branching in JavaScript
body: <pre><code>this.orientation = this.props.orientation
    ? this.props.orientation == 'horizontal'
      ? 'row'
      : 'column'
    : 'column';
  </code></pre>
  <p>May I know how I interpret this conditional branching? Got this code somewhere else from the web. I did read this <a href="https://javascript.info/ifelse#multiple" rel="nofollow noreferrer">https://javascript.info/ifelse#multiple</a> but I still can't understand it.</p>
  <p>From my understanding is that this.props.orientation which the orientation is retrieved from the parent. If this.props.orietation == 'horizontal' then return column? Then else if this.props.orientation =='row' then return column?</p>