title: JavaScript variable less than 4 characters
body: <p>I have "name" JavaScript variable. If variable "name" contains less than 4 characters I want to execute line: <code>msg('name','Your name must contain minimum 4 characters.')';</code>
  I have tried something like this but it interpretated mathematical. Any idea? Thank you.</p>
  
  <pre><code>if(name &lt; 4 ) {
    msg('name','Your name must contain minimum 4 characters.');
    return false;
  }
  </code></pre>