title: Logical operator with different types
body: <p>I'm trying to solve the famous <em>FizzBuzz</em> quiz but I decided to use the logical operator <strong>or</strong> instead of <strong>else</strong> to provide fullback. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>for (var num = 1; num &lt;= 100; num++) {
    var output;
   if (num % 5 === 0 &amp;&amp; num % 3 === 0) {
       output = "FizzBuzz";
      } else if (num % 5 === 0) {
       output = "Buzz";
      } else if (num % 3 === 0) {
       output = "Fizz";
      } 
    console.log(output || num);
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>
  This was supposed to print all the numbers from 1 to 100, with some exceptions. For numbers divisible by 3, print "Fizz" instead of the number, and for numbers divisible by 5, print "Buzz" instead and "FizzBuzz", for numbers that are divisible by both 3 and 5.</p>
  
  <p>
  But it doesn't print any numbers.</p>