title: Is there a way to use IgnoreCase in Javascript?
body: <p>I want to transnlate some words, but i have problems when I write HOUSE in uppercase or mixing. it just work when i write in lowercase</p>
  
  <pre><code>&lt;script&gt;
  var translate = prompt("Enter one of the next words:\nhouse\ntable\ndog\ncat");
  
  switch (translate){
      case 'house': document.write("casa");
          break;
      case 'table': document.write("mesa");
          break
      case 'dog': document.write("perro");
          break;
      case 'cat': document.write("gato");
          break;
      default: document.write("Error");
  
  
  }
  &lt;/script&gt;
  </code></pre>