title: How to set a variable passed on to a function as null in JavaScript
body: <p>Suppose I have a function in JavaScript:</p>
  
  <pre><code>function something (variable) {
      console.log(variable);
  }
  </code></pre>
  
  <p>How do I set that if there is no variable passed, then it is null by default?</p>