title: how to check if text exists in javascript var
body: <p>I have a var that contains some text. I would like to check whether the texts has a certain word.</p>
  
  <p>Example:  </p>
  
  <pre><code>var myString = 'This is some random text';
  </code></pre>
  
  <p>I would like to check if the word "random" exists. Thanks for any help.</p>