title: How to compare strings
body: <p>I wanted to compare a string without actually defining one of them as a string, something like this,</p>
  
  <pre><code>if (string == "add")
  </code></pre>
  
  <p>Do I have to declare <code>"add"</code> as a string or is it possible to compare in a similar way?</p>