title: console.log as condition in if statement
body: <p>Why isn't the if-statement on the bottom computing true? </p>
  
  <p>Is it maybe not possible to use console.log as condition in an if-statement together with a number?</p>
  
  <pre><code>// This is what a function looks like:
  
  var divideByThree = function (number) {
      var val = number / 3;
      console.log(val);
  };
  
  // On line 12, we call the function by name
  // Here, it is called 'dividebythree'
  // We tell the computer what the number input is (i.e. 6)
  // The computer then runs the code inside the function!
  divideByThree(6);
  
  if (divideByThree(6) === 2)
  {console.log("I'm right")}
  else
  {console.log("I'm stupid")}
  </code></pre>
  
  <p>this certainly works</p>
  
  <pre><code>var divideByThree = 2;
  
  if (divideByThree === 2)
  {console.log("I'm right no.2")}
  else
  {console.log("I'm stupid no.2")}
  </code></pre>