title: setTimeout [Callback must be a function] error
body: <p>I'm working on a simple Node.js register/login, and I want the error message to disappear after 2 seconds.</p>
  
  <pre><code>if (password.length &lt; 6) {
    setTimeout(errors.push({ msg: 'Password must be at least 6 characters' }), 2000);
  }
  </code></pre>
  
  <p>However, I get an error:</p>
  
  <p>TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received 2 at setTimeout (timers.js:122:11)</p>