title: Comparison of Ternary operator, Elvis operator, safe Navigation Operator and logical OR operators
body: <h2>Comparison with Ternary operator vs Elvis operator vs safe Navigation Operator vs logical or operators in angular</h2>
  
  <hr>
  
  <h2>Ternary Operator(statement ? obj : obj)</h2>
  
  <pre><code>let gender = user.male ? "male" : "female";
  </code></pre>
  
  <hr>
  
  <h2>Elvis Operator (?: )</h2>
  
  <pre><code>let displayName = user.name ?: "";
  </code></pre>
  
  <hr>
  
  <h2>Safe Navigation Operator (?.)</h2>
  
  <pre><code>let displayName = user.name ?. "";
  </code></pre>
  
  <hr>
  
  <h2>Logical or operators</h2>
  
  <pre><code>let displayName = user.name || "";
  </code></pre>
  
  <hr>
  
  <blockquote>
    <p>The above all operators are similarly doing the same process. What are the difference benefits  and which one is best &amp; worst?</p>
  </blockquote>