title: How to compare a string with symbol '\'
body: <p>I have a project and somewhere in my code I'm writing this:</p>
  
  <pre><code>else if (character[0] == '\'){
  </code></pre>
  
  <p>How can I compare my character with this symbol? Every other symbol that I tried to compare like <code>,</code>, <code>;</code>, etc. is done and this is the only symbol that I'm getting a wrong message.</p>