title: Slashes instead of quotes in JavaScript string replace method
body: <p>Why do they use</p>
  
  <p><strong>/</strong> </p>
  
  <p>instead of</p>
  
  <p><strong>'</strong></p>
  
  <p>in JavaScript string replace()? E.g.:</p>
  
  <pre><code>document.write(str.replace(/hi/, "hey"));
  </code></pre>