title: JavaScript: Conditional (ternary) vs boolean OR for non-boolean values?
body: <p>In JavaScript, can I always use boolean OR instead of conditional operator for all kind of variables (e.g. string, function, ...)?</p>
  
  <p>For example <code>z = (x || y)</code> instead of <code>z = (x ? x : y)</code>.</p>